Function at 0x4b7a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x533488
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 [0x1325064]
add esp, 8
inc eax
test eax, eax
je 0x4b7b37
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.00464e40
add esp, 8
cmp eax, ebx
je 0x4b7b93
cmp dword [esp + 0xc], ebx
je 0x4b7b5b
push str.begin
push eax
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4b7b22
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00464e40
mov ecx, dword [esp + 0x30]
push ecx
push eax
call fcn.00465320
add esp, 0x10
test eax, eax
je 0x4b7b93
lea edx, [esp + 0xc]
push 1
push edx
call fcn.00464e40
add esp, 8
cmp eax, ebx
jne 0x4b7aed
jmp 0x4b7b93
push str.WARNING:_Could_not_open_lens_flare_info_file__n
push 3
call dword [0x1325000]
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 [0x1325000]
push edi
mov dword [esp + 0x30], 0xffffffff
call dword [0x132506c]
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.00464e40
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4b7e65
cmp dword [esp + 0xc], ebx
je 0x4b7e50
push str.dot_min
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4b7c2f
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b7c1e
push str.WARNING:_invalid_dot_min_in_lensflares_n
push 3
call dword [0x1325000]
add esp, 8
jmp 0x4b7e35
push eax
call fcn.0051c76c
fstp dword [esi + 4]
add esp, 4
jmp 0x4b7e35
push str.flare
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4b7d3f
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
shl eax, 4
push ebx
push ecx
mov dword [eax + esi + 0x1c], 0x3f800000
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b7c80
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_1_for_flare__d_in_lensflares_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4b7e35
push eax
call fcn.0051c76c
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
inc eax
push ebx
shl eax, 4
push ecx
fstp dword [eax + esi]
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
cmp cl, bl
jne 0x4b7cbd
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_2_for_flare__d_in_lensflares_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4b7e35
push eax
call fcn.0051c76c
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
shl eax, 4
push ebx
push ecx
fstp dword [eax + esi + 0x14]
call fcn.00464e40
mov cl, byte [eax]
add esp, 0xc
cmp cl, bl
jne 0x4b7cfa
mov edx, dword [esi + 0xc]
push edx
push str.WARNING:_no_flare_arg_3_for_flare__d_in_lensflares_n
push 3
call dword [0x1325000]
add esp, 0xc
jmp 0x4b7e35
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call fcn.004a6ed0
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x24]
shl ecx, 4
push ebx
push edx
mov dword [ecx + esi + 0x18], eax
call fcn.00464e40
mov cl, byte [eax]
add esp, 0x20
cmp cl, bl
je 0x4b7d37
push eax
call fcn.0051c76c
mov eax, dword [esi + 0xc]
add esp, 4
shl eax, 4
fstp dword [eax + esi + 0x1c]
inc dword [esi + 0xc]
jmp 0x4b7e35
push str.fullscale
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4b7d8b
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b7d7a
push str.WARNING:_no_arg_for_fullscale__assuming_default__in_lensflares__n
push 3
call dword [0x1325000]
add esp, 8
jmp 0x4b7e35
push eax
call fcn.0051c76c
fstp dword [esi + 8]
add esp, 4
jmp 0x4b7e35
push str.fullscreen
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4b7dda
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b7dc3
push str.WARNING:_no_arg_for_fullsreen_in_lensflares_n
push 3
call dword [0x1325000]
add esp, 8
jmp 0x4b7e35
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
call fcn.004a6ed0
add esp, 0x18
mov dword [esi + 0x150], eax
jmp 0x4b7e35
push str.fullfade
push edi
call fcn.00465320
add esp, 8
test eax, eax
jne 0x4b7e23
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00464e40
mov cl, byte [eax]
add esp, 8
cmp cl, bl
jne 0x4b7e12
push str.WARNING:_no_arg_for_fullfade_in_lensflares_n
push 3
call dword [0x1325000]
add esp, 8
jmp 0x4b7e35
push eax
call fcn.0051c3ab
add esp, 4
mov dword [esi + 0x154], eax
jmp 0x4b7e35
push 0x56486c
push edi
call fcn.00465320
add esp, 8
test eax, eax
je 0x4b7e65
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.00464e40
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x4b7bd9
jmp 0x4b7e65
mov edx, dword [esp + 0x28]
push edx
push str.WARNING:_could_not_find_end_for_section__s_in_lensflares_n
push 3
call dword [0x1325000]
add esp, 0xc
cmp dword [esi + 0xc], ebx
jne 0x4b7e7a
push str.WARNING:_no_lensflares_defined__n
push 3
call dword [0x1325000]
add esp, 8
mov eax, dword [0x13905ac]
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 [0x132506c]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4