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

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0x94]
push ebp
xor ebp, ebp
push esi
movzx ecx, word [ebx + 0x42]
mov eax, ecx
mov dword [esp + 0x1c], ebp
and eax, 1
mov dword [esp + 0x2c], ebp
shl eax, 0x10
and ecx, 0xfe00
add eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [0x646038]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
test eax, eax
je 0x5a262b
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x5a262b
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x54]
push eax
push 3
push ebp
push 0xc0000006
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
call edi
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x44]
add ecx, 0x60
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
cmp dword [ecx], eax
jae 0x5a2c0b
mov eax, dword [ebx + 0x48]
lea edi, [ecx + 8]
mov ecx, dword [esp + 0xac]
mov esi, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ecx
mov ebx, dword [edi]
mov eax, dword [0x646038]
test eax, eax
je 0x5a26a5
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x5a26a1
mov dword [esp + 0x68], eax
lea eax, [esp + 0x60]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x14], ebx
jbe 0x5a29a9
mov eax, dword [esp + 0xa0]
push 1
push esi
push dword [esp + 0xb8]
push ecx
push eax
call fcn.005a2540
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x5a2996
or ecx, 0xffffffff
cmp esi, 4
cmove ecx, dword [esp + 0x14]
mov dword [edi], ecx
mov ecx, dword [0x646038]
test ecx, ecx
je 0x5a271b
push 0x28a
call ecx
add esp, 4
test eax, eax
je 0x5a271b
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
push eax
push 3
push ebp
push 0xc0000006
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ebx, dword [esp + 0xa0]
cmp byte [ebx + 0x2b], 0
jne 0x5a2747
mov eax, dword [ebx + 4]
push 9
push 1
push esi
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov ecx, dword [ebx + 0x74]
lea eax, [esi + 8]
add esp, 0x10
btr ecx, eax
mov dword [ebx + 0x74], ecx
mov ecx, dword [esp + 0x1c]
inc esi
add edi, 4
lea eax, [esi - 3]
cmp eax, 5
jl 0x5a2660
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
cmp dword [ecx], edi
jae 0x5a2bec
lea eax, [esp + 0x20]
push eax
mov eax, dword [ecx]
push eax
push ebx
call fcn.005a4a40
add esp, 0xc
mov ebp, eax
cmp dword [esp + 0x20], 0
je 0x5a2bec
push 1
push 3
push dword [esp + 0xb8]
push dword [esp + 0x28]
push ebx
call fcn.005a2540
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x5a2bec
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov dword [eax + 0x20], edi
mov eax, dword [0x646038]
mov dword [esp + 0x48], ecx
test eax, eax
je 0x5a27f7
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x5a27f7
mov dword [esp + 0x80], eax
lea eax, [esp + 0x78]
push eax
push 3
push ebp
push 0xc0000006
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edx, dword [esp + 0xb4]
mov ecx, dword [ebx + 8]
sar edx, 2
and edx, 3
mov dword [esp + 0xb4], edx
je 0x5a2831
mov eax, dword [ecx]
push edx
push ecx
mov eax, dword [eax + 0x14]
call eax
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x5a28f5
mov ebx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x10]
push 0
push ebp
push 0
push dword [esp + 0x40]
call fcn.005b5500
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x40], edx
mov ecx, dword [eax]
test ecx, ecx
je 0x5a2861
push 0
push 0x27
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
mov eax, dword [ebx + 4]
lea edx, [esp + 0x4c]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x5a28f9
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x40]
cmp ebx, ebp
jg 0x5a29d5
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x4c]
jl 0x5a28a0
cmp edi, esi
jae 0x5a29d5
mov eax, dword [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0xa8]
push 0
push dword [eax + 0x44]
call fcn.005b5500
add eax, edi
adc edx, ebx
add eax, 0x10000
adc edx, 0
cmp edx, ebp
jg 0x5a29b5
jl 0x5a28d6
cmp eax, esi
jae 0x5a29b5
push 0x104c8
call fcn.00548fb0
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x5a29d5
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x5a2916
push 0
push 0x25
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
test ebx, ebx
mov ebx, dword [esp + 0xa0]
jne 0x5a2bc7
push ebx
call fcn.005a3e60
add esp, 4
mov ecx, dword [eax + 0x10]
cmp edi, ecx
jne 0x5a2bb2
mov ecx, dword [ebx + 4]
mov eax, ebp
mul dword [ebx + 0x48]
mov esi, eax
mov eax, dword [ecx]
push edx
push esi
push ecx
mov eax, dword [eax + 0x10]
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x5a2bcb
mov edx, dword [esp + 0xb4]
mov ecx, dword [ebx + 4]
test edx, edx
je 0x5a2b9f
mov eax, dword [ecx]
push edx
push ecx
mov eax, dword [eax + 0x14]
call eax
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x5a2bcb
mov eax, dword [esp + 0x28]
push ebx
mov dword [eax], edi
call fcn.0053a5a0
add esp, 4
jmp 0x5a2bcb
cmp ebp, 5
jne 0x5a2cdb
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0xa0]
jmp 0x5a274b
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x5a29d5
lea edx, [esp + 0x3c]
push edx
push 5
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], edx
nop dword [eax]
mov esi, dword [esp + 0x20]
or ecx, 0xffffffff
mov dword [esp + 0x24], ecx
mov eax, dword [esi]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 4]
sub eax, 1
mov dword [esp + 0x2c], eax
js 0x5a2a65
lea eax, [eax + eax*4]
lea eax, [eax + 5]
lea esi, [esi + eax*4]
mov eax, dword [esi - 0xc]
mov ebx, dword [esi]
cmp eax, ebx
jge 0x5a2a55
mov ecx, dword [esi - 8]
mov ebp, dword [esi - 4]
lea ecx, [ecx + eax*2]
nop dword [eax + eax]
movzx edi, word [ecx]
mov edx, dword [ebp + edi*4]
cmp edx, dword [esp + 0x44]
ja 0x5a2a3e
inc eax
add ecx, 2
mov dword [esi - 0xc], eax
cmp eax, ebx
jl 0x5a2a20
mov ecx, dword [esp + 0x24]
jmp 0x5a2a55
mov ecx, dword [esp + 0x24]
cmp edx, ecx
jae 0x5a2a55
mov eax, dword [esi + 4]
mov ecx, edx
add eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
sub esi, 0x14
dec eax
mov dword [esp + 0x2c], eax
test eax, eax
jns 0x5a2a06
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
cmp ecx, 0xffffffff
je 0x5a2b8d
mov eax, dword [0x646038]
test eax, eax
je 0x5a2ac3
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x5a2abf
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x84]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0xa4]
cmp dword [eax + 0x128], 0
jne 0x5a2b75
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x48]
jbe 0x5a2af0
cmp edx, dword [esp + 0x14]
ja 0x5a2af0
cmp ecx, dword [esp + 0x34]
jbe 0x5a2af9
nop dword [eax]
mov edx, dword [esp + 0x38]
jmp 0x5a29e0
mov ebx, dword [esp + 0x10]
lea ecx, [edx - 1]
mov ebp, dword [esp + 0xa0]
lea eax, [ebx + 0x18]
mov esi, dword [ebp + 8]
mul ecx
mov edi, dword [esi]
add eax, 0x38
adc edx, 0
push edx
push eax
mov eax, dword [edi + 8]
push ebx
push dword [esp + 0xc4]
push esi
call eax
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x5a28f1
mov esi, dword [ebp + 4]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push ebx
mov edi, dword [esi]
dec eax
push ebp
push ebx
push eax
call fcn.005b5500
push edx
push eax
mov eax, dword [edi + 0xc]
push ebp
push dword [esp + 0xc4]
push esi
call eax
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x5a2b96
mov edx, dword [esp + 0x38]
jmp 0x5a29e0
xor ebx, ebx
cmp byte [eax + 0x57], bl
sete bl
lea ebx, [ebx*2 + 7]
mov dword [esp + 0x18], ebx
jmp 0x5a28f1
mov ebx, dword [esp + 0x18]
jmp 0x5a28f1
mov edi, dword [esp + 0x14]
jmp 0x5a28f9
mov eax, dword [esp + 0x28]
xor ebp, ebp
push ebx
mov dword [eax], edi
call fcn.0053a5a0
add esp, 4
jmp 0x5a2bcb
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
push ebx
mov dword [eax], edi
call fcn.0053a5a0
add esp, 4
jmp 0x5a2bcb
mov ebp, dword [esp + 0x18]
cmp byte [ebx + 0x2b], 0
jne 0x5a2bec
mov eax, dword [ebx + 4]
push 9
push 1
push 3
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
and dword [ebx + 0x74], 0xfffff7ff
cmp ebp, 5
jne 0x5a2bfb
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
xor ebp, ebp
jmp 0x5a2c16
test ebp, ebp
jne 0x5a2cdb
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
jmp 0x5a2c16
mov eax, dword [esp + 0xac]
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x5a2cdb
mov eax, dword [0x646038]
test eax, eax
je 0x5a2c6c
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x5a2c6c
mov dword [esp + 0x98], eax
lea eax, [esp + 0x90]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
call edi
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x44]
jae 0x5a2c7e
mov ebp, 5
jmp 0x5a2cdb
cmp esi, 2
jl 0x5a2cdb
lea eax, [esp + 0x10]
push eax
push 4
call fcn.004e5440
push 4
push 4
push dword [esp + 0xc0]
push dword [esp + 0x30]
push ebx
call fcn.005a2540
mov ebp, eax
add esp, 0x1c
test ebp, ebp
jne 0x5a2cdb
cmp esi, 3
jne 0x5a2cce
push dword [esp + 0x10]
push ebx
call fcn.005a51b0
mov eax, dword [ebx + 8]
push ebp
push ebp
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x14
mov ebp, eax
push 4
push 4
push ebx
call fcn.005a5a10
add esp, 0xc
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0xa0]
mov dword [eax + 0x78], 0
je 0x5a2d5a
cmp dword [0x645f38], 0
je 0x5a2d4d
mov eax, dword [0x64de48]
test eax, eax
je 0x5a2d0c
push eax
call dword [0x645f88]
add esp, 4
mov esi, dword [esp + 0x20]
push esi
call dword [0x645f64]
sub dword [0x64dde8], eax
dec dword [0x64de0c]
push esi
call dword [0x645f5c]
mov eax, dword [0x64de48]
add esp, 8
test eax, eax
je 0x5a2d5a
push eax
call dword [0x645f90]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
push dword [esp + 0x20]
call dword [0x645f5c]
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x8c
ret