Function at 0x4b2f40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52e128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x10], bl
lea eax, [esp + 0xc]
mov dword [esp + 0x20], ebx
push eax
push str.global_lensflaredefs.txt
mov dword [esi + 0x19c], ebx
call dword [0x12ff704]
add esp, 8
inc eax
test eax, eax
je 0x4b2ff7
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 1
push ecx
mov byte [esp + 0x18], 1
mov dword [esp + 0x1c], edi
call fcn.00462880
add esp, 8
cmp eax, ebx
je 0x4b3053
cmp dword [esp + 0xc], ebx
je 0x4b301b
push str.begin
push eax
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4b2fe2
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00462880
mov ecx, dword [esp + 0x30]
push ecx
push eax
call fcn.00462d60
add esp, 0x10
test eax, eax
je 0x4b3053
lea edx, [esp + 0xc]
push 1
push edx
call fcn.00462880
add esp, 8
cmp eax, ebx
jne 0x4b2fad
jmp 0x4b3053
push str.WARNING:_Could_not_open_lens_flare_info_file__n
push 3
call dword [0x12ff6a0]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov eax, dword [esp + 0x28]
push eax
push str.WARNING:_could_not_find_begin_for_section__s_in_lensflares_n
push 3
call dword [0x12ff6a0]
push edi
mov dword [esp + 0x30], 0xffffffff
call dword [0x12ff70c]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
lea ecx, [esp + 0xc]
push 1
push ecx
mov dword [esi + 4], 0x3f4ccccd
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x3f333333
mov dword [esi + 0x150], ebx
mov dword [esi + 0x19c], 1
mov dword [esi + 0x154], ebx
mov dword [esi + 0x158], ebx
call fcn.00462880
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4b3325
cmp dword [esp + 0xc], ebx
je 0x4b3310
push str.dot_min
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4b30ef
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b30de
push str.WARNING:_invalid_dot_min_in_lensflares_n
push 3
call dword [0x12ff6a0]
add esp, 8
jmp 0x4b32f5
push eax
call fcn.0051738c
fstp dword [esi + 4]
add esp, 4
jmp 0x4b32f5
push str.flare
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4b31ff
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
shl eax, 4
push ebx
push ecx
mov dword [eax + esi + 0x1c], 0x3f800000
call fcn.00462880
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b3140
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_1_for_flare__d_in_lensflares_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x4b32f5
push eax
call fcn.0051738c
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
inc eax
push ebx
shl eax, 4
push ecx
fstp dword [eax + esi]
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
cmp cl, bl
jne 0x4b317d
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_2_for_flare__d_in_lensflares_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x4b32f5
push eax
call fcn.0051738c
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
shl eax, 4
push ebx
push ecx
fstp dword [eax + esi + 0x14]
call fcn.00462880
mov cl, byte [eax]
add esp, 0xc
cmp cl, bl
jne 0x4b31ba
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_3_for_flare__d_in_lensflares_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
jmp 0x4b32f5
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call fcn.0049d500
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x24]
shl ecx, 4
push ebx
push edx
mov dword [ecx + esi + 0x18], eax
call fcn.00462880
mov cl, byte [eax]
add esp, 0x20
cmp cl, bl
je 0x4b31f7
push eax
call fcn.0051738c
mov eax, dword [esi + 0xc]
add esp, 4
shl eax, 4
fstp dword [eax + esi + 0x1c]
inc dword [esi + 0xc]
jmp 0x4b32f5
push str.fullscale
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4b324b
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b323a
push str.WARNING:_no_arg_for_fullscale__assuming_default__in_lensflares__n
push 3
call dword [0x12ff6a0]
add esp, 8
jmp 0x4b32f5
push eax
call fcn.0051738c
fstp dword [esi + 8]
add esp, 4
jmp 0x4b32f5
push str.fullscreen
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4b329a
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00462880
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b3283
push str.WARNING:_no_arg_for_fullsreen_in_lensflares_n
push 3
call dword [0x12ff6a0]
add esp, 8
jmp 0x4b32f5
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call fcn.0049d500
add esp, 0x18
mov dword [esi + 0x150], eax
jmp 0x4b32f5
push str.fullfade
push edi
call fcn.00462d60
add esp, 8
test eax, eax
jne 0x4b32e3
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00462880
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b32d2
push str.WARNING:_no_arg_for_fullfade_in_lensflares_n
push 3
call dword [0x12ff6a0]
add esp, 8
jmp 0x4b32f5
push eax
call fcn.005171fb
add esp, 4
mov dword [esi + 0x154], eax
jmp 0x4b32f5
push 0x55dccc
push edi
call fcn.00462d60
add esp, 8
test eax, eax
je 0x4b3325
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.00462880
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x4b3099
jmp 0x4b3325
mov edx, dword [esp + 0x28]
push edx
push str.WARNING:_could_not_find_end_for_section__s_in_lensflares_n
push 3
call dword [0x12ff6a0]
add esp, 0xc
cmp dword [esi + 0xc], ebx
jne 0x4b333a
push str.WARNING:_no_lensflares_defined__n
push 3
call dword [0x12ff6a0]
add esp, 8
mov eax, dword [0x136bc4c]
mov edi, dword [esi + 0x154]
mov ecx, dword [esp + 0x14]
sub eax, edi
push ecx
mov dword [esi + 0x190], eax
mov dword [esp + 0x24], 0xffffffff
call dword [0x12ff70c]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4