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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1000
or dword [esp], 0
sub esp, 0x1000
or dword [esp], 0
sub esp, 0x5ac
mov edi, dword [esp + 0x25c4]
mov esi, dword [esp + 0x25cc]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x25c8]
mov ebx, eax
mov ebp, ecx
mov ecx, dword [0xd41044]
mov dword [esp + 0x259c], ecx
xor ecx, ecx
mov dword [esp + 0x20], esi
mov eax, edx
mov esi, dword [esp + 0x25d0]
mov dword [esp + 0x40], edi
mov edx, dword [esp + 0x25c0]
test ebx, ebx
je 0x591e47
mov edi, dword [ebx + 0x48]
test edi, edi
je 0x591e40
test ebp, ebp
jne 0x591d91
test edx, edx
jne 0x591e40
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x591da5
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x591e40
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x591e40
test esi, esi
je 0x591eb0
lea edi, [esp + 0x98]
mov ecx, 0x116
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xdc]
test eax, eax
jne 0x591ea0
mov edi, dword [esp + 0xbc]
mov esi, dword [esp + 0xb8]
mov eax, edi
or eax, esi
je 0x591ea0
test byte [esp + 0xac], 0x61
jne 0x591ee0
mov eax, dword [esp + 0x28]
and eax, 0x400
mov dword [esp + 0x44], eax
jne 0x591ef0
test word [esp + 0xae], 0xfff7
jne 0x592030
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x30], eax
jmp 0x591ef8
mov dword [ebx + 0x1c], 0x18
xor eax, eax
mov edx, dword [esp + 0x259c]
sub edx, dword [0xd41044]
jne 0x5922e6
add esp, 0x25ac
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], ebp
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
xor esi, eax
or esi, dword [esp + 0x30]
jne 0x592020
lea esi, [esi]
nop
mov eax, 1
jmp 0x591e49
lea ecx, [esp + 0x98]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], ebx
mov dword [esp + 0x30], edx
call fcn.00592370
mov edx, dword [esp + 0x30]
test eax, eax
jne 0x591dc6
jmp 0x591e47
mov dword [ebx + 0x1c], 5
jmp 0x591e47
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], edx
cmp edx, eax
mov eax, dword [esp + 0x3c]
sbb eax, dword [esp + 0x30]
jb 0x592040
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x10], 0x1e
mov edx, eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
call dword [ebx + 0x38]
cmp eax, 0x1e
jne 0x592020
cmp dword [esp + 0x78], 0x4034b50
jne 0x592050
movzx edx, word [esp + 0x92]
movzx eax, word [esp + 0x94]
mov ecx, dword [ebx + 4]
lea eax, [edx + eax + 0x1e]
xor edx, edx
add eax, dword [esp + 0x38]
adc edx, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
add eax, esi
mov dword [esp + 0x54], edx
adc edx, edi
cmp dword [ebx], eax
sbb ecx, edx
jb 0x592050
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x591e67
cmp word [esp + 0xae], 0
jne 0x59205c
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], ebp
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
xor eax, esi
or eax, dword [esp + 0x30]
jne 0x592020
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], ebp
mov dword [esp], 0
mov dword [esp + 8], eax
call fcn.0058db30
cmp dword [esp + 0xb0], eax
je 0x591ea0
mov dword [ebx + 0x1c], 0xe
jmp 0x591e47
mov dword [ebx + 0x1c], 0x14
jmp 0x591e47
mov dword [ebx + 0x1c], 4
jmp 0x591e47
mov dword [ebx + 0x1c], 0x1a
jmp 0x591e47
mov dword [ebx + 0x1c], 9
jmp 0x591e47
mov dword [esp + 0x4f0], 0
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x592291
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
add eax, ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x28], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x5c], ebx
jmp 0x592166
mov eax, dword [esp + 0x58]
mov edx, esi
mov esi, dword [esp + 0x30]
add eax, esi
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], eax
lea eax, [esp + 0x4f0]
mov esi, edx
xor edx, edx
mov dword [esp + 0xc], ebp
or esi, ecx
lea esi, [esp + 0x74]
mov dword [esp], eax
setne dl
add ebx, ebp
mov dword [esp + 0x14], esi
add edx, edx
mov dword [esp + 0x10], ebx
or edx, 4
mov dword [esp + 0x18], edx
lea edx, [esp + 0x70]
mov dword [esp + 8], edx
call fcn.005a4f50
xor edx, edx
mov ecx, eax
mov eax, dword [esp + 0x70]
sub dword [esp + 0x20], eax
sbb dword [esp + 0x24], edx
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x74]
adc dword [esp + 0x34], edx
xor edx, edx
add dword [esp + 0x28], eax
adc dword [esp + 0x2c], edx
cmp ecx, 1
jne 0x59224b
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x20]
sub eax, ebx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
or eax, esi
jne 0x5920e0
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x48]
mov edx, dword [eax + 0x48]
test edx, edx
je 0x5921a3
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x30]
xor edx, edx
add eax, esi
jmp 0x5920ec
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x60], eax
sbb esi, edx
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x50]
cmovae esi, eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x64]
cmovae esi, dword [esp + 0x3c]
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x10], esi
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0xc], esi
mov eax, dword [edi + 0x44]
mov dword [esp], eax
call dword [edi + 0x38]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
xor eax, edi
or eax, ecx
jne 0x5922eb
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov eax, esi
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
add dword [esp + 0x50], edx
mov dword [esp + 0x20], edx
adc dword [esp + 0x54], ecx
mov dword [esp + 0x30], esi
sub dword [esp + 0x38], edx
mov edx, dword [esp + 0x68]
sbb dword [esp + 0x3c], ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], ecx
jmp 0x5920ec
mov ebx, dword [esp + 0x5c]
mov edi, ecx
test ecx, ecx
jne 0x592278
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
mov edx, 0xd
mov eax, dword [esp + 0x28]
xor ecx, esi
mov esi, dword [esp + 0x44]
xor eax, esi
or eax, ecx
je 0x5922c4
mov dword [ebx + 0x1c], edx
or edi, 0xffffffff
mov eax, dword [ebx + 0x48]
mov esi, dword [esp + 0x40]
or esi, dword [eax + 0x48]
je 0x5922f9
test edi, edi
sete al
movzx eax, al
jmp 0x591e49
mov eax, dword [esp + 0x40]
test eax, eax
je 0x59230f
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x591e47
mov dword [esp + 0x60], ecx
xor ecx, ecx
mov dword [esp + 0x38], esi
xor esi, esi
mov dword [esp + 0x3c], edi
xor edi, edi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x58], eax
jmp 0x592097
xor eax, eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.0058db30
cmp dword [esp + 0xb0], eax
je 0x592278
mov edx, 0xe
jmp 0x592272
call fcn.00401690
mov ebx, dword [esp + 0x5c]
mov edx, 0xb
jmp 0x592272
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call dword [ebx + 0x2c]
jmp 0x592284
xor eax, eax
mov ecx, 0x10000
mov dword [esp + 4], 1
mov edx, eax
cmp ecx, esi
sbb edx, edi
cmovae ecx, esi
cmovae eax, edi
mov dword [esp + 8], ecx
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x60], ecx
mov dword [esp], eax
call dword [ebx + 0x28]
mov dword [esp + 0x58], eax
test eax, eax
je 0x592358
mov dword [esp + 0x38], esi
xor esi, esi
mov dword [esp + 0x3c], edi
xor edi, edi
jmp 0x592097
mov dword [ebx + 0x1c], 0x10
jmp 0x591e47