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

Disassembly:
sub esp, 0x4c
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov eax, dword [esp + 0x64]
mov ecx, dword [edx]
push esi
xor esi, esi
test dword [eax + 0x24], 0x400
mov dword [esp + 0xc], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
je 0x5901c4
movzx eax, byte [eax + 0x1d]
pop esi
add esp, 0x4c
ret
cmp word [esp + 0x64], si
je 0x5901d8
test byte [ecx + 0x3c], 0x80
je 0x5901d8
xor eax, eax
pop esi
add esp, 0x4c
ret
mov eax, dword [esp + 0x58]
movzx eax, word [eax]
cmp ax, 0x3f
ja 0x5901d1
movzx ecx, ax
mov eax, 1
xor edx, edx
mov byte [esp + 7], 1
mov dword [esp + 0x10], ecx
call fcn.005e6610
add eax, 0xffffffff
push ebx
adc edx, 0xffffffff
push ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], esi
push edi
mov ecx, dword [esp + 0x40]
cmp ecx, dword [esp + 0x58]
ja 0x5906f7
jb 0x590240
mov edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x54]
jae 0x5906f7
movzx eax, word [esp + 0x70]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jg 0x5906f7
test ecx, ecx
jle 0x590267
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 8]
mov edx, dword [edx + 0xc]
or dword [esp + 0x44], esi
or dword [esp + 0x48], edx
cmp ecx, eax
jge 0x590277
mov eax, dword [esp + 0x68]
mov edx, dword [eax + 0x18]
mov edx, dword [edx + ecx*4]
jmp 0x59027b
mov edx, dword [esp + 0x74]
movzx eax, byte [edx + 0x10]
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*8]
mov eax, dword [ecx + eax*8 + 0x34]
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
jle 0x5903ba
mov dword [esp + 0x20], ecx
lea esp, [esp]
mov eax, 1
xor edx, edx
call fcn.005e6610
mov ebx, edx
mov ebp, eax
and eax, dword [esp + 0x3c]
mov ecx, ebx
and ecx, dword [esp + 0x40]
or eax, ecx
jne 0x59039e
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + edx]
call fcn.00564360
mov edi, eax
cmp byte [edi], 0x99
jne 0x59039e
mov ecx, dword [esp + 0x2c]
cmp dword [edi + 0x1c], ecx
jne 0x59039e
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
movsx ecx, word [edi + 0x20]
push 0
not eax
not edx
push eax
push edx
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x3c]
add edx, 0x148
mov eax, 0x82
call fcn.0058e4c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x59039e
test byte [esi + 0x12], 2
je 0x590396
cmp word [edi + 0x20], 0
jl 0x590396
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + eax]
push edx
call fcn.00589310
add esp, 4
test eax, eax
jne 0x590368
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 8]
mov edi, dword [eax]
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
push ecx
mov ecx, dword [esi]
call fcn.00589310
add esp, 4
test eax, eax
jne 0x590386
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 8]
mov eax, dword [eax]
push eax
push edi
call fcn.0055dac0
add esp, 8
test eax, eax
jne 0x59039e
or dword [esp + 0x3c], ebp
or dword [esp + 0x40], ebx
mov ecx, dword [esp + 0x24]
add dword [esp + 0x20], 0x18
inc ecx
cmp ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
jl 0x5902b0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x590658
test eax, 0x100
je 0x5903de
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], esi
lea eax, [esi + 1]
jmp 0x590412
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x590606
test byte [ecx + 0x38], 4
jne 0x590606
movzx edx, word [ecx + 0x32]
cmp byte [ecx + 0x36], 0
movzx eax, word [ecx + 0x34]
mov dword [esp + 0x34], edx
setne byte [esp + 0x13]
mov esi, ecx
movzx eax, ax
xor edx, edx
mov byte [esp + 0x16], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], eax
test eax, eax
jle 0x590658
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 0x18]
cmp edx, ecx
jge 0x590469
cmp word [eax + 0x1a], 0
jne 0x590469
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + edx*4]
movzx eax, word [eax + 0x12]
test al, 0x82
je 0x590469
test al, al
jns 0x59063c
mov byte [esp + 0x13], 0
jmp 0x59063c
test esi, esi
je 0x59048b
mov eax, dword [esi + 4]
movsx ebp, word [eax + edx*2]
mov eax, dword [esi + 0x1c]
mov al, byte [edx + eax]
mov byte [esp + 0x14], al
mov eax, dword [esi + 0xc]
movsx eax, word [eax + 0x24]
cmp ebp, eax
jne 0x590493
jmp 0x590490
mov byte [esp + 0x14], 0
or ebp, 0xffffffff
cmp byte [esp + 0x13], 0
je 0x5904b8
test ebp, ebp
jl 0x5904b8
cmp edx, ecx
jl 0x5904b8
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 4]
lea edx, [ebp + ebp*2]
cmp byte [eax + edx*8 + 0x14], 0
jne 0x5904b8
mov byte [esp + 0x13], 0
xor esi, esi
mov bl, 1
xor edi, edi
mov edi, edi
cmp esi, dword [esp + 0x1c]
jge 0x59058e
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.005e6610
and eax, dword [esp + 0x3c]
and edx, dword [esp + 0x40]
or eax, edx
jne 0x590582
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 8]
mov ecx, dword [edi + edx]
mov eax, ecx
test eax, eax
je 0x590524
jmp 0x590500
mov edx, dword [eax + 4]
test edx, 0x1000
je 0x590524
test edx, 0x40000
je 0x59051d
mov eax, dword [eax + 0x14]
mov edx, dword [eax + 8]
mov eax, dword [edx]
jmp 0x590520
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x590500
test dword [esp + 0x6c], 0x300
jne 0x590530
xor bl, bl
cmp byte [eax], 0x99
jne 0x590582
mov edx, dword [esp + 0x2c]
cmp dword [eax + 0x1c], edx
jne 0x590582
movsx eax, word [eax + 0x20]
cmp eax, ebp
jne 0x590582
test ebp, ebp
jl 0x5905bd
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
push eax
call fcn.00589310
add esp, 4
test eax, eax
jne 0x590564
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 8]
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [ecx + edx*4]
mov edx, dword [eax]
push ecx
push edx
call fcn.0055dac0
add esp, 8
test eax, eax
je 0x5905b9
inc esi
add edi, 0x18
test bl, bl
jne 0x5904c0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x59059f
movzx edx, word [esp + 0x34]
cmp eax, edx
jge 0x5905a4
mov byte [esp + 0x13], 0
cmp byte [esp + 0x17], 0
je 0x590658
mov byte [esp + 0x13], 1
jmp 0x590663
test ebp, ebp
jge 0x5905c2
mov byte [esp + 0x17], 1
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.005e6610
or dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x60]
or dword [esp + 0x40], edx
mov eax, 0x100
test word [ecx + 0x22], ax
jne 0x59063c
cmp byte [esp + 0x16], 0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 8]
lea edx, [esi + esi*2]
je 0x590610
mov al, byte [esp + 0x14]
xor al, byte [esp + 0x15]
cmp al, byte [ecx + edx*8 + 0xc]
je 0x59063c
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x4c
ret
mov al, byte [ecx + edx*8 + 0xc]
xor al, byte [esp + 0x14]
mov byte [esp + 0x15], al
je 0x590637
mov ecx, dword [esp + 0x28]
mov eax, 1
xor edx, edx
call fcn.005e6610
mov ecx, dword [esp + 0x78]
or dword [ecx], eax
or dword [ecx + 4], edx
mov byte [esp + 0x16], 1
mov edx, dword [esp + 0x24]
inc edx
cmp edx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
jge 0x5905a4
mov esi, dword [esp + 0x20]
jmp 0x590436
cmp byte [esp + 0x13], 0
je 0x5906e8
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
or dword [esp + 0x4c], ecx
or dword [esp + 0x50], edx
xor ebp, ebp
cmp dword [esp + 0x1c], ebp
jle 0x5906e8
mov dword [esp + 0x2c], ebp
mov eax, 1
xor edx, edx
mov ecx, ebp
call fcn.005e6610
mov edi, edx
mov esi, eax
and eax, dword [esp + 0x3c]
mov ecx, edi
and ecx, dword [esp + 0x40]
or eax, ecx
jne 0x5906dc
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ecx]
push eax
mov eax, dword [esp + 0x64]
add eax, 0x44
push eax
call fcn.00571100
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
not ecx
not ebx
and eax, ecx
and edx, ebx
add esp, 8
or eax, edx
jne 0x5906dc
or dword [esp + 0x3c], esi
or dword [esp + 0x40], edi
add dword [esp + 0x2c], 0x18
inc ebp
cmp ebp, dword [esp + 0x1c]
jl 0x590681
inc dword [esp + 0x28]
cmp byte [esp + 0x13], 0
jne 0x590222
mov edx, dword [esp + 0x54]
cmp dword [esp + 0x3c], edx
jne 0x590718
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x40], eax
jne 0x590718
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x4c
ret
movzx eax, byte [esp + 0x13]
pop edi
pop ebp
neg eax
pop ebx
sbb eax, eax
pop esi
add esp, 0x4c
ret