Function at 0x4b6980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x531e68
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 [0x1313ce4]
add esp, 8
inc eax
test eax, eax
je 0x4b6a37
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.00464f30
add esp, 8
cmp eax, ebx
je 0x4b6a93
cmp dword [esp + 0xc], ebx
je 0x4b6a5b
push str.begin
push eax
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4b6a22
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00464f30
mov ecx, dword [esp + 0x30]
push ecx
push eax
call fcn.00465410
add esp, 0x10
test eax, eax
je 0x4b6a93
lea edx, [esp + 0xc]
push 1
push edx
call fcn.00464f30
add esp, 8
cmp eax, ebx
jne 0x4b69ed
jmp 0x4b6a93
push str.WARNING:_Could_not_open_lens_flare_info_file__n
push 3
call dword [0x1313c80]
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 [0x1313c80]
push edi
mov dword [esp + 0x30], 0xffffffff
call dword [0x1313cec]
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.00464f30
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4b6d65
cmp dword [esp + 0xc], ebx
je 0x4b6d50
push str.dot_min
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4b6b2f
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b6b1e
push str.WARNING:_invalid_dot_min_in_lensflares_n
push 3
call dword [0x1313c80]
add esp, 8
jmp 0x4b6d35
push eax
call fcn.0051b0ec
fstp dword [esi + 4]
add esp, 4
jmp 0x4b6d35
push str.flare
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4b6c3f
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
shl eax, 4
push ebx
push ecx
mov dword [eax + esi + 0x1c], 0x3f800000
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b6b80
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_1_for_flare__d_in_lensflares_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4b6d35
push eax
call fcn.0051b0ec
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
inc eax
push ebx
shl eax, 4
push ecx
fstp dword [eax + esi]
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
cmp cl, bl
jne 0x4b6bbd
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_2_for_flare__d_in_lensflares_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4b6d35
push eax
call fcn.0051b0ec
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
shl eax, 4
push ebx
push ecx
fstp dword [eax + esi + 0x14]
call fcn.00464f30
mov cl, byte [eax]
add esp, 0xc
cmp cl, bl
jne 0x4b6bfa
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_3_for_flare__d_in_lensflares_n
push 3
call dword [0x1313c80]
add esp, 0xc
jmp 0x4b6d35
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call fcn.004a6df0
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x24]
shl ecx, 4
push ebx
push edx
mov dword [ecx + esi + 0x18], eax
call fcn.00464f30
mov cl, byte [eax]
add esp, 0x20
cmp cl, bl
je 0x4b6c37
push eax
call fcn.0051b0ec
mov eax, dword [esi + 0xc]
add esp, 4
shl eax, 4
fstp dword [eax + esi + 0x1c]
inc dword [esi + 0xc]
jmp 0x4b6d35
push str.fullscale
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4b6c8b
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b6c7a
push str.WARNING:_no_arg_for_fullscale__assuming_default__in_lensflares__n
push 3
call dword [0x1313c80]
add esp, 8
jmp 0x4b6d35
push eax
call fcn.0051b0ec
fstp dword [esi + 8]
add esp, 4
jmp 0x4b6d35
push str.fullscreen
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4b6cda
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b6cc3
push str.WARNING:_no_arg_for_fullsreen_in_lensflares_n
push 3
call dword [0x1313c80]
add esp, 8
jmp 0x4b6d35
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call fcn.004a6df0
add esp, 0x18
mov dword [esi + 0x150], eax
jmp 0x4b6d35
push str.fullfade
push edi
call fcn.00465410
add esp, 8
test eax, eax
jne 0x4b6d23
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00464f30
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b6d12
push str.WARNING:_no_arg_for_fullfade_in_lensflares_n
push 3
call dword [0x1313c80]
add esp, 8
jmp 0x4b6d35
push eax
call fcn.0051ad2b
add esp, 4
mov dword [esi + 0x154], eax
jmp 0x4b6d35
push 0x56243c
push edi
call fcn.00465410
add esp, 8
test eax, eax
je 0x4b6d65
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.00464f30
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x4b6ad9
jmp 0x4b6d65
mov edx, dword [esp + 0x28]
push edx
push str.WARNING:_could_not_find_end_for_section__s_in_lensflares_n
push 3
call dword [0x1313c80]
add esp, 0xc
cmp dword [esi + 0xc], ebx
jne 0x4b6d7a
push str.WARNING:_no_lensflares_defined__n
push 3
call dword [0x1313c80]
add esp, 8
mov eax, dword [0x137f22c]
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 [0x1313cec]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4