Function at 0x4b6a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x531f18
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 [0x1313ca4]
add esp, 8
inc eax
test eax, eax
je 0x4b6ac7
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.004650d0
add esp, 8
cmp eax, ebx
je 0x4b6b23
cmp dword [esp + 0xc], ebx
je 0x4b6aeb
push str.begin
push eax
call fcn.004655b0
add esp, 8
test eax, eax
jne 0x4b6ab2
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.004650d0
mov ecx, dword [esp + 0x30]
push ecx
push eax
call fcn.004655b0
add esp, 0x10
test eax, eax
je 0x4b6b23
lea edx, [esp + 0xc]
push 1
push edx
call fcn.004650d0
add esp, 8
cmp eax, ebx
jne 0x4b6a7d
jmp 0x4b6b23
push str.WARNING:_Could_not_open_lens_flare_info_file__n
push 3
call dword [0x1313c40]
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 [0x1313c40]
push edi
mov dword [esp + 0x30], 0xffffffff
call dword [0x1313cac]
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.004650d0
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4b6df5
cmp dword [esp + 0xc], ebx
je 0x4b6de0
push str.dot_min
push edi
call fcn.004655b0
add esp, 8
test eax, eax
jne 0x4b6bbf
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.004650d0
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b6bae
push str.WARNING:_invalid_dot_min_in_lensflares_n
push 3
call dword [0x1313c40]
add esp, 8
jmp 0x4b6dc5
push eax
call fcn.0051b18c
fstp dword [esi + 4]
add esp, 4
jmp 0x4b6dc5
push str.flare
push edi
call fcn.004655b0
add esp, 8
test eax, eax
jne 0x4b6ccf
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
shl eax, 4
push ebx
push ecx
mov dword [eax + esi + 0x1c], 0x3f800000
call fcn.004650d0
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b6c10
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_1_for_flare__d_in_lensflares_n
push 3
call dword [0x1313c40]
add esp, 0xc
jmp 0x4b6dc5
push eax
call fcn.0051b18c
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
inc eax
push ebx
shl eax, 4
push ecx
fstp dword [eax + esi]
call fcn.004650d0
mov cl, byte [eax]
add esp, 0xc
cmp cl, bl
jne 0x4b6c4d
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_2_for_flare__d_in_lensflares_n
push 3
call dword [0x1313c40]
add esp, 0xc
jmp 0x4b6dc5
push eax
call fcn.0051b18c
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
shl eax, 4
push ebx
push ecx
fstp dword [eax + esi + 0x14]
call fcn.004650d0
mov cl, byte [eax]
add esp, 0xc
cmp cl, bl
jne 0x4b6c8a
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_3_for_flare__d_in_lensflares_n
push 3
call dword [0x1313c40]
add esp, 0xc
jmp 0x4b6dc5
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call fcn.004a6e80
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x24]
shl ecx, 4
push ebx
push edx
mov dword [ecx + esi + 0x18], eax
call fcn.004650d0
mov cl, byte [eax]
add esp, 0x20
cmp cl, bl
je 0x4b6cc7
push eax
call fcn.0051b18c
mov eax, dword [esi + 0xc]
add esp, 4
shl eax, 4
fstp dword [eax + esi + 0x1c]
inc dword [esi + 0xc]
jmp 0x4b6dc5
push str.fullscale
push edi
call fcn.004655b0
add esp, 8
test eax, eax
jne 0x4b6d1b
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.004650d0
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b6d0a
push str.WARNING:_no_arg_for_fullscale__assuming_default__in_lensflares__n
push 3
call dword [0x1313c40]
add esp, 8
jmp 0x4b6dc5
push eax
call fcn.0051b18c
fstp dword [esi + 8]
add esp, 4
jmp 0x4b6dc5
push str.fullscreen
push edi
call fcn.004655b0
add esp, 8
test eax, eax
jne 0x4b6d6a
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.004650d0
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b6d53
push str.WARNING:_no_arg_for_fullsreen_in_lensflares_n
push 3
call dword [0x1313c40]
add esp, 8
jmp 0x4b6dc5
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call fcn.004a6e80
add esp, 0x18
mov dword [esi + 0x150], eax
jmp 0x4b6dc5
push str.fullfade
push edi
call fcn.004655b0
add esp, 8
test eax, eax
jne 0x4b6db3
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.004650d0
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b6da2
push str.WARNING:_no_arg_for_fullfade_in_lensflares_n
push 3
call dword [0x1313c40]
add esp, 8
jmp 0x4b6dc5
push eax
call fcn.0051adcb
add esp, 4
mov dword [esi + 0x154], eax
jmp 0x4b6dc5
push 0x5623f4
push edi
call fcn.004655b0
add esp, 8
test eax, eax
je 0x4b6df5
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004650d0
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x4b6b69
jmp 0x4b6df5
mov edx, dword [esp + 0x28]
push edx
push str.WARNING:_could_not_find_end_for_section__s_in_lensflares_n
push 3
call dword [0x1313c40]
add esp, 0xc
cmp dword [esi + 0xc], ebx
jne 0x4b6e0a
push str.WARNING:_no_lensflares_defined__n
push 3
call dword [0x1313c40]
add esp, 8
mov eax, dword [0x137f1ec]
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 [0x1313cac]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4