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

Disassembly:
sub esp, 0x68
mov eax, dword [0x654200]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x80]
push edi
lea ecx, [esp + 0x24]
push eax
mov edx, dword [esi + 0x4000]
xor ebx, ebx
push ecx
push edx
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
call fcn.005a4dc0
mov edx, dword [esp + 0x8c]
add esp, 0xc
cmp edx, ebx
jle 0x5a40df
mov eax, dword [esp + 0x7c]
mov ecx, edx
add eax, 2
mov byte [eax - 2], bl
mov byte [eax - 1], bl
mov byte [eax], bl
mov byte [eax + 1], bl
add eax, 4
dec ecx
jne 0x5a40ce
mov eax, dword [esi + 0x4000]
mov ecx, dword [0x654200]
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x5a413b
cmp ecx, ebx
jle 0x5a4133
dec ecx
lea edi, [eax + 0x1c]
mov dword [esp + 0x2c], ecx
mov ebp, 0x10
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi]
push ecx
push edx
call fcn.005a4f80
mov edx, dword [esp + 0x18]
add esp, 8
add edx, eax
add edi, 4
dec ebp
mov dword [esp + 0x10], edx
jne 0x5a4104
mov ecx, dword [0x654200]
mov edx, dword [esp + 0x80]
jmp 0x5a413b
mov dword [esp + 0x10], 1
mov edi, dword [esp + 0x10]
cmp edi, edx
jg 0x5a41a6
mov esi, dword [esi + 0x4000]
xor eax, eax
cmp esi, ebx
je 0x5a459e
cmp ecx, ebx
jle 0x5a4189
lea ebx, [ecx - 1]
add esi, 0x1c
mov edi, 0x10
mov ecx, dword [esi]
push ebx
push eax
mov eax, dword [esp + 0x84]
push eax
push ecx
call fcn.005a4fd0
add esp, 0x10
add esi, 4
dec edi
jne 0x5a4162
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov edx, dword [esp + 0x7c]
push esi
push edx
call fcn.005a45b0
mov eax, dword [esp + 0x18]
add esp, 8
mov byte [esi + 0x18], bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ebp, 1
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [0x654200]
mov eax, ebp
mov edx, ebp
shl eax, cl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esi + 0x10], eax
mov ecx, dword [0x654200]
shl edx, cl
mov eax, ebp
mov dword [esi + 0x14], edx
mov ecx, dword [0x654200]
shl eax, cl
mov edx, ebp
mov dword [esi + 0x18], eax
mov ecx, dword [0x654200]
shl edx, cl
mov ecx, dword [esi + 0x4000]
lea eax, [esi + 0x2400]
push eax
push esi
mov dword [esi + 0x1c], edx
mov byte [eax + 0x18], bl
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov eax, dword [0x654200]
lea edx, [esp + 0x40]
push eax
push edx
push ecx
call fcn.005a4850
mov eax, dword [esi + 0x2414]
add esp, 0x14
mov dword [esi + 0x2000], eax
mov eax, dword [esp + 0x80]
cmp eax, ebp
mov dword [esp + 0x14], ebp
jle 0x5a44f6
lea ecx, [esi + 0x20]
lea edx, [esi + 0x2004]
mov dword [esp + 0x10], ecx
lea eax, [esi + 0x2430]
lea ecx, [esi + 0x241c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x5a427a
mov ebp, dword [esp + 0x14]
fld dword [0x622c08]
or ecx, 0xffffffff
xor edx, edx
cmp ebp, ebx
mov dword [esp + 0x28], ecx
jle 0x5a44f4
lea edi, [esi + 0x2000]
fcom dword [edi]
fnstsw ax
test ah, 5
jp 0x5a42aa
fstp st(0)
fld dword [edi]
mov dword [esp + 0x28], edx
mov ecx, edx
inc edx
add edi, 4
cmp edx, ebp
jl 0x5a4297
cmp ecx, 0xffffffff
fstp st(0)
je 0x5a44f6
lea eax, [ecx*8]
mov edx, ecx
sub eax, ecx
lea ecx, [esp + 0x48]
shl edx, 5
lea ebp, [esi + eax*4]
mov eax, dword [esi + 0x4000]
mov dword [esp + 0x34], ebp
add ebp, 0x2400
push ebp
lea edi, [edx + esi]
push ecx
push ebx
push edi
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], eax
call fcn.005a4b50
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x5c]
fstp dword [esp + 0x4c]
push ebp
push edx
push 1
push edi
push eax
call fcn.005a4b50
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x70]
fstp dword [esp + 0x64]
push ebp
push ecx
push 2
push edi
push edx
call fcn.005a4b50
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x84]
fstp dword [esp + 0x7c]
push ebp
push eax
push 3
push edi
push ecx
call fcn.005a4b50
fstp dword [esp + 0x94]
add esp, 0x50
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x2c]
fld dword [esp + ecx*4 + 0x38]
fcomp dword [esp + eax + 0x38]
fnstsw ax
test ah, 5
jp 0x5a4371
lea eax, [ecx*4]
mov edx, ecx
mov dword [esp + 0x2c], eax
inc ecx
cmp ecx, 4
jl 0x5a4351
fld dword [esp + edx*4 + 0x38]
fcomp dword [ebp + 0x14]
fnstsw ax
test ah, 5
jp 0x5a446d
mov eax, dword [esp + 0x30]
mov esi, edi
mov edi, dword [esp + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x84]
xor ecx, ecx
push ebp
mov cl, byte [esp + edx*4 + 0x4c]
push eax
mov dword [edi + edx*4], ecx
mov dword [eax + edx*4 + 0x10], ecx
mov ecx, dword [esi + 0x4000]
mov byte [ebp + 0x18], bl
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov edx, dword [0x654200]
lea eax, [esp + 0x60]
push edx
push eax
push ecx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.005a4850
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x4000]
push eax
push edi
mov byte [eax + 0x18], bl
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov edx, dword [0x654200]
lea eax, [esp + 0x84]
push edx
push eax
push ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
call fcn.005a4850
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x50]
add esp, 0x28
mov edx, dword [ecx + 0x2414]
mov ecx, dword [esp + 0x20]
mov dword [esi + eax*4 + 0x2000], edx
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
mov ecx, 0x1c
mov dword [eax], edx
jmp 0x5a44b0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
dec eax
mov dword [esi + ecx*4 + 0x2000], ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov ecx, 0x1c
sub ebp, 4
sub edi, 0x20
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
add edx, 4
add edi, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [esp + 0x80]
inc eax
add ebp, 0x20
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
jl 0x5a4276
jmp 0x5a44f6
fstp st(0)
mov eax, dword [esp + 0x80]
xor edi, edi
cmp eax, ebx
jle 0x5a45a0
mov edx, dword [esp + 0x7c]
lea eax, [esi + 0x2400]
mov dword [esp + 0x84], edx
mov ebp, esi
mov dword [esp + 0x7c], eax
mov eax, dword [0x654200]
mov edx, dword [esi + 0x4000]
push edi
push ebp
lea ecx, [esp + 0x70]
push eax
push ecx
push edx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call fcn.005a46f0
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x98]
push eax
push ecx
call fcn.005a45b0
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
add esp, 0x1c
inc edi
add ebp, 0x20
add edx, 0x1c
add ecx, 4
cmp edi, eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], ecx
jl 0x5a451e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret