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

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x20]
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov ebp, dword [edi + 4]
mov esi, dword [edi]
mov ebx, dword [edi + 8]
cmp byte [ebp + 0x10], 0x4c
setne al
dec dword [esi + 0x38]
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
cmp edx, 2
jne 0x588753
cmp byte [ebp + 0x11], 0x5a
jne 0x588753
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x5887c7
cmp byte [ebp + 0x10], 0x59
jne 0x5887b4
mov edi, dword [ebx + 0x74]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x2c]
push ecx
cmp edx, 2
jne 0x5887a0
cmp byte [ebp + 0x11], 0x56
jne 0x58878c
push dword [edi + 0x20]
push eax
push dword [edi + 0x28]
push 0x37
push edi
call fcn.00588b40
add esp, 0x18
jmp 0x5887dd
push dword [edi + 0x28]
push eax
push dword [edi + 0x20]
push 0x39
push edi
call fcn.00588b40
add esp, 0x18
jmp 0x5887dd
push dword [edi + 0x28]
push eax
push dword [edi + 0x30]
push 0x36
push edi
call fcn.00588b40
add esp, 0x18
jmp 0x5887c3
push 1
push ecx
push eax
push 0x31
push ebx
call fcn.00560db0
add esp, 0x14
mov edx, dword [esp + 0x30]
cmp edx, 1
jne 0x5887e1
cmp dword [ebp + 0x58], 0
jne 0x5887e1
push 0
push edi
call fcn.005878e0
add esp, 8
mov edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x24], eax
mov al, byte [ebp + 0x11]
cmp al, byte [ebp + 0x12]
jne 0x5888f3
cmp dword [esp + 0x34], 0
je 0x5888f3
cmp byte [ebp + 0x10], 0x59
jne 0x5888f3
mov al, byte [esi + 0x13]
test al, al
jne 0x588818
inc dword [esi + 0x2c]
mov ecx, dword [esi + 0x2c]
jmp 0x588827
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov ecx, dword [esi + eax*4 + 0x98]
mov al, byte [esi + 0x13]
mov dword [esp + 0x2c], ecx
test al, al
jne 0x58883a
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
jmp 0x588849
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov eax, dword [esi + eax*4 + 0x98]
mov dword [esp + 0x10], eax
cmp edx, 2
jne 0x58888c
push ecx
push dword [edi + 0x20]
push 0x86
push ebx
call fcn.00560d50
push dword [esp + 0x20]
push dword [edi + 0x30]
push 0x86
push ebx
call fcn.00560d50
push dword [esp + 0x4c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0x39
push ebx
call fcn.00560db0
add esp, 0x34
jmp 0x5888b7
cmp dword [edi + 0x1c], 0
je 0x5888bb
push ecx
push dword [edi + 0x30]
push 0x86
push ebx
call fcn.00560d50
push dword [esp + 0x3c]
push dword [esp + 0x28]
push dword [edi + 0x1c]
push 0x39
push ebx
call fcn.00560db0
add esp, 0x24
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5888d7
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x5888d7
movzx eax, al
mov dword [esi + eax*4 + 0x98], ecx
inc byte [esi + 0x13]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x5888f3
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x5888f3
movzx eax, al
mov dword [esi + eax*4 + 0x98], ecx
inc byte [esi + 0x13]
mov eax, edx
dec eax
je 0x58896a
dec eax
je 0x588933
cmp dword [ebp + 0x58], 0
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ecx
je 0x588921
push 1
push dword [ebp + 0x5c]
push 0x55
push ebx
call fcn.00560d50
add esp, 0x10
jmp 0x588981
push dword [edi + 0x14]
push 0
push eax
push ebp
push edi
call fcn.00587c20
add esp, 0x14
jmp 0x588981
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x58]
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x588958
push 1
push ecx
push 0x55
push ebx
call fcn.00560d50
add esp, 0x10
jmp 0x588981
push dword [edi + 0x14]
push 1
push eax
push ebp
push edi
call fcn.00587c20
add esp, 0x14
jmp 0x588981
mov eax, dword [edi + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x2c]
push edi
mov dword [esp + 0x14], eax
call fcn.00589c30
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, dword [edi + 0x18]
jne 0x5889b3
push dword [esp + 0x2c]
push 0x81
push ebx
call fcn.00560cf0
mov eax, dword [ebx + 0x74]
add esp, 0xc
test eax, eax
jle 0x5889b3
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [ebx + 0x70]
mov word [eax + ecx*4 - 0x12], dx
cmp dword [esp + 0x38], 0
mov eax, dword [ebx + 0x74]
je 0x588a28
add eax, 2
push eax
push dword [esp + 0x30]
push 5
push ebx
call fcn.00560d50
mov edx, dword [ebx + 0x74]
add esp, 0x10
mov dword [esp + 0x1c], edx
cmp dword [ebx + 0x78], edx
jg 0x5889f3
push 0
push 0
push 0
push 0xb
push ebx
call fcn.00515850
add esp, 0x14
mov dword [esp + 0x1c], eax
jmp 0x588a5b
lea eax, [edx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x588a5b
mov ecx, dword [esp + 0x18]
inc ecx
add eax, ecx
push eax
push dword [esp + 0x30]
push 5
push ebx
call fcn.00560d50
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x588adf
push dword [esp + 0x14]
push 0
push 0xb
push ebx
call fcn.00560d50
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x588adf
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x588a7f
mov ecx, dword [ecx]
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x588a87
push ecx
push esi
call fcn.00549730
add esp, 8
jmp 0x588a89
mov dword [esp + 0x18], 0
xor eax, eax
push eax
push dword [esp + 0x30]
mov dword [esp + 0x38], eax
push edi
call fcn.00589b20
push dword [esp + 0x30]
mov edi, dword [esp + 0x40]
push dword [esp + 0x20]
push edi
push dword [ebp + 0xc]
push esi
call fcn.00589720
mov eax, dword [esp + 0x38]
add esp, 0x20
cmp eax, 1
jne 0x588ad4
test edi, edi
je 0x588adf
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x588adf
movzx eax, al
mov dword [esi + eax*4 + 0x98], edi
inc byte [esi + 0x13]
jmp 0x588adf
cmp eax, dword [esi + 0x1c]
jle 0x588adf
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x588af5
push eax
push 0
push 0xb
push ebx
call fcn.00560d50
add esp, 0x10
mov edx, dword [ebx + 0xc]
mov ebp, dword [esp + 0x14]
not ebp
mov eax, dword [edx + 0x3c]
add eax, dword [edx + 0x38]
jns 0x588b1d
push ebp
push ebx
push edx
call fcn.005278f0
mov eax, dword [esp + 0x28]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [edx + 0x40]
mov ecx, dword [ebx + 0x74]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [edx + ebp*4], ecx
pop ebp
pop ebx
add esp, 0x18
ret