Function at 0x4cae90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54a7f8
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 [0x160ccc4]
add esp, 8
inc eax
test eax, eax
je 0x4caf47
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.00474120
add esp, 8
cmp eax, ebx
je 0x4cafa3
cmp dword [esp + 0xc], ebx
je 0x4caf6b
push str.begin
push eax
call fcn.00474600
add esp, 8
test eax, eax
jne 0x4caf32
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00474120
mov ecx, dword [esp + 0x30]
push ecx
push eax
call fcn.00474600
add esp, 0x10
test eax, eax
je 0x4cafa3
lea edx, [esp + 0xc]
push 1
push edx
call fcn.00474120
add esp, 8
cmp eax, ebx
jne 0x4caefd
jmp 0x4cafa3
push str.WARNING:_Could_not_open_lens_flare_info_file__n
push 3
call dword [0x160cc60]
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 [0x160cc60]
push edi
mov dword [esp + 0x30], 0xffffffff
call dword [0x160cccc]
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.00474120
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4cb275
cmp dword [esp + 0xc], ebx
je 0x4cb260
push str.dot_min
push edi
call fcn.00474600
add esp, 8
test eax, eax
jne 0x4cb03f
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00474120
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4cb02e
push str.WARNING:_invalid_dot_min_in_lensflares_n
push 3
call dword [0x160cc60]
add esp, 8
jmp 0x4cb245
push eax
call fcn.005335ec
fstp dword [esi + 4]
add esp, 4
jmp 0x4cb245
push str.flare
push edi
call fcn.00474600
add esp, 8
test eax, eax
jne 0x4cb14f
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
shl eax, 4
push ebx
push ecx
mov dword [eax + esi + 0x1c], 0x3f800000
call fcn.00474120
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4cb090
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_1_for_flare__d_in_lensflares_n
push 3
call dword [0x160cc60]
add esp, 0xc
jmp 0x4cb245
push eax
call fcn.005335ec
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
inc eax
push ebx
shl eax, 4
push ecx
fstp dword [eax + esi]
call fcn.00474120
mov cl, byte [eax]
add esp, 0xc
cmp cl, bl
jne 0x4cb0cd
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_2_for_flare__d_in_lensflares_n
push 3
call dword [0x160cc60]
add esp, 0xc
jmp 0x4cb245
push eax
call fcn.005335ec
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
shl eax, 4
push ebx
push ecx
fstp dword [eax + esi + 0x14]
call fcn.00474120
mov cl, byte [eax]
add esp, 0xc
cmp cl, bl
jne 0x4cb10a
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_3_for_flare__d_in_lensflares_n
push 3
call dword [0x160cc60]
add esp, 0xc
jmp 0x4cb245
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call fcn.004b9ec0
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x24]
shl ecx, 4
push ebx
push edx
mov dword [ecx + esi + 0x18], eax
call fcn.00474120
mov cl, byte [eax]
add esp, 0x20
cmp cl, bl
je 0x4cb147
push eax
call fcn.005335ec
mov eax, dword [esi + 0xc]
add esp, 4
shl eax, 4
fstp dword [eax + esi + 0x1c]
inc dword [esi + 0xc]
jmp 0x4cb245
push str.fullscale
push edi
call fcn.00474600
add esp, 8
test eax, eax
jne 0x4cb19b
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.00474120
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4cb18a
push str.WARNING:_no_arg_for_fullscale__assuming_default__in_lensflares__n
push 3
call dword [0x160cc60]
add esp, 8
jmp 0x4cb245
push eax
call fcn.005335ec
fstp dword [esi + 8]
add esp, 4
jmp 0x4cb245
push str.fullscreen
push edi
call fcn.00474600
add esp, 8
test eax, eax
jne 0x4cb1ea
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00474120
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4cb1d3
push str.WARNING:_no_arg_for_fullsreen_in_lensflares_n
push 3
call dword [0x160cc60]
add esp, 8
jmp 0x4cb245
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call fcn.004b9ec0
add esp, 0x18
mov dword [esi + 0x150], eax
jmp 0x4cb245
push str.fullfade
push edi
call fcn.00474600
add esp, 8
test eax, eax
jne 0x4cb233
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00474120
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4cb222
push str.WARNING:_no_arg_for_fullfade_in_lensflares_n
push 3
call dword [0x160cc60]
add esp, 8
jmp 0x4cb245
push eax
call fcn.0053322b
add esp, 4
mov dword [esi + 0x154], eax
jmp 0x4cb245
push 0x57eb9c
push edi
call fcn.00474600
add esp, 8
test eax, eax
je 0x4cb275
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.00474120
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x4cafe9
jmp 0x4cb275
mov edx, dword [esp + 0x28]
push edx
push str.WARNING:_could_not_find_end_for_section__s_in_lensflares_n
push 3
call dword [0x160cc60]
add esp, 0xc
cmp dword [esi + 0xc], ebx
jne 0x4cb28a
push str.WARNING:_no_lensflares_defined__n
push 3
call dword [0x160cc60]
add esp, 8
mov eax, dword [0x167820c]
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 [0x160cccc]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4