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

Disassembly:
sub esp, 0x70
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x10], 0
push esi
push edi
mov edi, edx
mov dword [esp + 0x50], ebp
mov eax, dword [ebp + 0x1c]
xor esi, esi
mov ebx, dword [ebp]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x40], 1
mov dword [esp + 0x2c], 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], eax
test edi, edi
je 0x5a48a1
call fcn.005a3f70
test eax, eax
jne 0x5a48a1
push eax
lea eax, [esp + 0x1c]
mov dword [ebp + 0x1c], 0x7e2d1c
push eax
mov edx, edi
mov dword [ebp + 0x20], edi
mov ecx, ebx
call fcn.0059baa0
add esp, 8
test eax, eax
je 0x5a42ff
push eax
push 0x7e2cb0
push ebp
call fcn.005a3ee0
add esp, 0xc
mov edi, dword [esp + 0x18]
test edi, edi
je 0x5a487f
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x5a487a
call fcn.00594d40
jmp 0x5a487f
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
mov byte [esp + 0x17], cl
mov ecx, eax
mov byte [eax], 0
call fcn.0059b890
test eax, eax
je 0x5a431f
push eax
push 0x7e2cd8
jmp 0x5a42d3
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.0059b660
test eax, eax
je 0x5a433f
push eax
push 0x7e2b78
push ebp
call fcn.005a3ee0
add esp, 0xc
jmp 0x5a42e0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x38]
movzx edi, byte [edx + 9]
lea ebx, [edi + eax]
mov dword [esp + 0x20], eax
mov dword [ebp + 0x1c], 0x7e2b90
movzx ecx, byte [ebx + 5]
movzx eax, byte [ebx + 6]
mov dl, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x34], ebx
movzx ebx, byte [ebx + 3]
dec ecx
movzx eax, cx
mov ecx, 3
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
shl ebx, 8
movzx eax, byte [eax + 4]
or ebx, eax
movzx eax, dl
sub ecx, eax
lea eax, [edi + ecx*4]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x58], eax
lea eax, [eax + ebx*2]
lea edi, [ecx - 2]
add edi, eax
mov dword [esp + 0x1c], edi
test dl, dl
jne 0x5a4405
mov eax, dword [esp + 0x34]
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x3c]
bswap edi
cmp byte [eax + 0x11], dl
je 0x5a43d5
push dword [esp + 0x24]
mov edx, edi
mov dword [ebp + 0x1c], 0x7e2b3c
push 5
mov ecx, ebp
call fcn.005a4000
add esp, 8
push dword [esp + 0x8c]
lea eax, [esp + 0x8c]
mov edx, edi
push dword [esp + 0x8c]
mov ecx, ebp
push eax
call fcn.005a4240
mov edi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], esi
jmp 0x5a440e
mov esi, dword [ebp + 0x40]
mov dword [esi], 0
lea edx, [ebx - 1]
mov eax, edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], eax
test eax, eax
js 0x5a44c2
cmp dword [ebp + 0x10], 0
je 0x5a44be
mov dword [ebp + 0x24], eax
mov ax, word [edi]
sub edi, 2
mov ch, al
mov dword [esp + 0x1c], edi
mov cl, ah
mov eax, dword [esp + 0x28]
movzx ebx, cx
add eax, 0xfffffffc
mov ecx, dword [esp + 0x30]
inc ecx
cmp ebx, ecx
jb 0x5a47ef
cmp ebx, eax
ja 0x5a47ef
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x68]
add eax, ebx
push ecx
push eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax + 0x50]
call eax
mov di, word [esp + 0x86]
add esp, 0xc
mov edx, dword [esp + 0x28]
movzx eax, di
add eax, ebx
cmp eax, edx
jbe 0x5a465b
push 0x7e2bf0
push ebp
call fcn.005a3ee0
add esp, 8
mov dword [esp + 0x40], 0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
sub eax, 1
mov dword [esp + 0x48], eax
jns 0x5a4423
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x40], 0
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
mov dword [ecx], eax
mov eax, dword [esp + 0x8c]
mov dword [ecx + 4], eax
mov dword [ebp + 0x1c], 0
je 0x5a486b
cmp dword [ebp + 0x10], 0
jle 0x5a42dc
mov eax, dword [esp + 0x18]
cmp byte [eax + 8], 0
jne 0x5a4579
mov esi, dword [ebp + 0x40]
mov dword [esi], 0
test edx, edx
js 0x5a4579
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x20]
lea ebx, [eax + ebp*2]
add ebx, edx
mov ax, word [ebx]
mov ch, al
mov cl, ah
movzx edi, cx
lea eax, [edi + edx]
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax + 0x4c]
call eax
inc dword [esi]
add esp, 8
movzx eax, ax
dec eax
add eax, edi
shl edi, 0x10
or eax, edi
mov edi, dword [esi]
mov dword [esi + edi*4], eax
mov eax, edi
shr eax, 1
je 0x5a4569
mov ecx, dword [esi + eax*4]
mov edx, dword [esi + edi*4]
cmp ecx, edx
jbe 0x5a4569
mov dword [esi + eax*4], edx
mov dword [esi + edi*4], ecx
mov edi, eax
shr eax, 1
jne 0x5a4553
mov edx, dword [esp + 0x20]
sub ebx, 2
sub ebp, 1
jns 0x5a4520
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x34]
movzx ebx, byte [eax + 1]
movzx eax, byte [eax + 2]
shl ebx, 8
or ebx, eax
jbe 0x5a45e2
mov edx, dword [esp + 0x20]
movzx ecx, byte [edx + ebx + 2]
movzx eax, byte [edx + ebx + 3]
inc dword [esi]
mov edi, dword [esi]
shl ecx, 8
or ecx, eax
mov eax, ebx
dec ecx
shl eax, 0x10
add ecx, ebx
or ecx, eax
mov eax, edi
shr eax, 1
mov dword [esi + edi*4], ecx
je 0x5a45d0
mov ecx, dword [esi + eax*4]
mov edx, dword [esi + edi*4]
cmp ecx, edx
jbe 0x5a45cc
mov dword [esi + eax*4], edx
mov dword [esi + edi*4], ecx
mov edi, eax
shr eax, 1
jne 0x5a45b6
mov edx, dword [esp + 0x20]
movzx ecx, byte [ebx + edx]
movzx eax, byte [edx + ebx + 1]
shl ecx, 8
mov ebx, ecx
or ebx, eax
ja 0x5a4590
xor edx, edx
mov ecx, dword [esi]
mov dword [esp + 0x40], edx
test ecx, ecx
je 0x5a4829
mov eax, dword [esi + ecx*4]
mov edi, 1
mov ebx, dword [esi + 4]
mov dword [esi + 4], eax
mov dword [esi + ecx*4], 0xffffffff
mov ecx, 2
dec dword [esi]
cmp dword [esi], ecx
jb 0x5a463c
mov eax, dword [esi + ecx*4 + 4]
lea edx, [ecx + 1]
cmp dword [esi + ecx*4], eax
mov eax, dword [esi + edi*4]
cmovbe edx, ecx
mov ecx, dword [esi + edx*4]
cmp eax, ecx
jb 0x5a4638
mov dword [esi + edi*4], ecx
mov edi, edx
mov dword [esi + edx*4], eax
lea ecx, [edi + edi]
cmp ecx, dword [esi]
jbe 0x5a4612
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov eax, ebx
shr eax, 0x10
movzx ecx, cx
cmp ecx, eax
jae 0x5a480d
sub eax, ecx
mov dword [esp + 0x30], ebx
dec edx
add edx, eax
jmp 0x5a45e4
mov eax, dword [esp + 0x18]
cmp byte [eax + 2], 0
je 0x5a46d5
cmp dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
je 0x5a468a
cmp eax, dword [esp + 0x8c]
jl 0x5a46bf
jg 0x5a469e
cmp ecx, dword [esp + 0x88]
jbe 0x5a46bf
jmp 0x5a469e
cmp eax, dword [esp + 0x8c]
jl 0x5a46bf
jg 0x5a469e
cmp ecx, dword [esp + 0x88]
jb 0x5a46bf
push eax
push ecx
push 0x7e2c08
push ebp
call fcn.005a3ee0
mov eax, dword [esp + 0x7c]
add esp, 0x10
mov ecx, dword [esp + 0x68]
mov di, word [esp + 0x7a]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x2c], 0
movzx ecx, word [esp + 0x78]
mov eax, dword [esp + 0x74]
cmp eax, ecx
jbe 0x5a4737
sub eax, ecx
mov ebp, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
add eax, 0xfffffffb
add eax, edx
xor edx, edx
lea ecx, [ecx - 4]
div ecx
movzx ecx, di
mov edi, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov edi, dword [ecx + edi - 4]
mov ecx, dword [esp + 0x3c]
bswap edi
cmp byte [ecx + 0x11], 0
je 0x5a4729
push dword [esp + 0x24]
mov edx, edi
mov ecx, ebp
push 3
call fcn.005a4000
mov eax, dword [esp + 0x5c]
add esp, 8
push eax
push edi
xor edx, edx
mov ecx, ebp
call fcn.005a4090
add esp, 8
mov eax, dword [esp + 0x18]
cmp byte [eax + 8], 0
jne 0x5a47b2
mov eax, dword [esp + 0x44]
mov edi, dword [eax]
mov eax, dword [esp + 0x3c]
bswap edi
cmp byte [eax + 0x11], 0
je 0x5a4765
push dword [esp + 0x24]
mov edx, edi
mov ecx, ebp
push 5
call fcn.005a4000
add esp, 8
push dword [esp + 0x8c]
lea eax, [esp + 0x8c]
mov edx, edi
push dword [esp + 0x8c]
mov ecx, ebp
push eax
call fcn.005a4240
mov edi, eax
mov dword [esp + 0x38], 0
add esp, 0xc
cmp edi, dword [esp + 0x38]
je 0x5a44a9
push 0x7e2bac
push ebp
call fcn.005a3ee0
add esp, 8
mov dword [esp + 0x38], edi
jmp 0x5a44a9
movzx eax, word [esp + 0x7a]
inc dword [esi]
dec eax
mov edi, dword [esi]
add eax, ebx
shl ebx, 0x10
or eax, ebx
mov dword [esi + edi*4], eax
mov eax, edi
shr eax, 1
je 0x5a44a9
mov ecx, dword [esi + eax*4]
mov edx, dword [esi + edi*4]
cmp ecx, edx
jbe 0x5a44a9
mov dword [esi + eax*4], edx
mov dword [esi + edi*4], ecx
mov edi, eax
shr eax, 1
jne 0x5a47d0
jmp 0x5a44a9
push eax
push ecx
push ebx
push 0x7e2b58
push ebp
call fcn.005a3ee0
add esp, 0x14
mov dword [esp + 0x40], 0
jmp 0x5a44ad
mov ebx, dword [esp + 0x24]
push ebx
push eax
push 0x7e2bc8
push ebp
call fcn.005a3ee0
mov ecx, dword [esi]
add esp, 0x10
mov edx, dword [esp + 0x40]
jmp 0x5a482d
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
movzx eax, ax
sub esi, eax
dec esi
add edx, esi
test ecx, ecx
jne 0x5a42dc
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 7]
cmp edx, eax
je 0x5a42dc
push ebx
push eax
push edx
push 0x7e2de4
push ebp
call fcn.005a3ee0
add esp, 0x14
jmp 0x5a42dc
mov edi, dword [esp + 0x18]
mov al, byte [esp + 0x17]
mov byte [edi], al
jmp 0x5a42e0
call fcn.00591460
mov eax, dword [esp + 0x5c]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x60]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x38]
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x70
ret