Function at 0x487970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5311f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x100e8
call fcn.00523e50
mov eax, dword [0x562940]
xor eax, dword [esp + 0x100f4]
push ebx
push ebp
mov dword [esp + 0x100ec], eax
mov al, byte [esp + 0x10104]
push esi
xor ebx, ebx
cmp al, bl
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
je 0x487a03
mov ecx, dword [esp + 0x10108]
mov al, byte [ecx]
cmp al, bl
mov edx, ecx
je 0x4879db
cmp al, 0x2f
je 0x4879d0
cmp al, 0x5c
jne 0x4879d3
lea edx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
cmp al, bl
jne 0x4879c8
mov al, byte [edx]
cmp al, bl
lea ecx, [esp + 0x74]
je 0x4879ff
lea edi, [esp + 0x74]
sub edx, edi
jmp 0x4879f0
cmp al, 0x2e
je 0x4879ff
mov byte [ecx], al
mov al, byte [edx + ecx + 1]
inc ecx
cmp al, bl
jne 0x4879f0
mov byte [ecx], bl
jmp 0x487a3e
mov edx, dword [esp + 0x10108]
mov al, byte [edx]
cmp al, bl
lea ecx, [esp + 0x74]
je 0x487a2f
lea edi, [esp + 0x74]
sub edx, edi
lea ebx, [ebx]
cmp al, 0x2e
je 0x487a2f
mov byte [ecx], al
mov al, byte [edx + ecx + 1]
inc ecx
cmp al, bl
jne 0x487a20
lea eax, [esp + 0x74]
push eax
mov byte [ecx], bl
call fcn.0052be15
add esp, 4
lea eax, [esp + 0x74]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x487a55
sub eax, edx
push eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x24]
call fcn.0048ced0
mov dword [esp + 0x10100], ebx
lea edi, [esi + 0x5400]
lea esi, [esp + 0x1c]
lea ebx, [esp + 0x70]
call fcn.0048c460
mov esi, dword [eax]
mov eax, dword [esp + 0x34]
or ebp, 0xffffffff
cmp eax, 0x10
mov dword [esp + 0x10100], ebp
jb 0x487aa9
mov edx, dword [esp + 0x20]
push edx
call fcn.0051d030
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x5404]
xor ebx, ebx
cmp esi, ecx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
je 0x487ad1
mov eax, dword [esi + 0x28]
jmp 0x487c37
mov dword [esp + 0x38], str.Top_Level
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x68], ebx
mov byte [esp + 0x6c], bl
cmp byte [esp + 0x1010c], bl
mov dword [esp + 0x10100], 1
mov dword [esp + 0x10], ebx
je 0x487b2e
mov edi, dword [esp + 0x10108]
jmp 0x487b4f
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0xb8]
push str._s.efx
push edx
call fcn.00519d48
add esp, 0xc
lea edi, [esp + 0xb4]
push ebx
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00425fc0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jg 0x487b8f
push edi
push str.Effect_file_load_failed:__s:_file_not_found_n
push 0x13f8ee8
call fcn.0048e770
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x10104], ebp
call fcn.00497430
xor eax, eax
jmp 0x487c37
cmp esi, 0xffff
jb 0x487bc9
push edi
push str.Effect_file_load_failed:__s:_file_too_large_n
push 0x13f8ee8
call fcn.0048e770
mov edx, dword [esp + 0x20]
push edx
call fcn.004220d0
add esp, 0x10
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x10104], ebp
call fcn.00497430
xor eax, eax
jmp 0x487c37
mov ebp, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0xf8]
push esi
push ecx
call fcn.00423000
add esp, 0xc
push ebx
push 1
lea eax, [esp + 0x18]
lea edx, [esp + 0xfc]
push eax
lea edi, [esp + 0x44]
mov byte [esp + esi + 0x100], bl
mov dword [esp + 0x1c], edx
call fcn.00497480
push ebp
call fcn.004220d0
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0x7c]
call fcn.00487c70
mov esi, eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x10104], 0xffffffff
call fcn.00497430
mov eax, esi
mov ecx, dword [esp + 0x100f8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x100f0]
xor ecx, dword [esp + 0x10100]
pop esi
pop ebp
pop ebx
call fcn.00523319
add esp, 0x100f4
ret 8