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

Disassembly:
jne 0x591a1e
mov eax, dword [ebp + 0x5c]
push 0
add eax, 0x4d58
mov ecx, ebp
push eax
call fcn.004c6f70
test eax, eax
je 0x591984
push 0x40
push 0x5e7590
push 0x5e9d2c
mov ecx, ebp
call 0x607944
jmp 0x591a1e
mov ecx, dword [ebp + 0x5c]
add ecx, 0x4d58
push ecx
call dword [0x597424]
jmp 0x591a1e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 6
call 0x60570c
lea ecx, [esp + 0x24]
mov byte [esp + 0x130], 4
call 0x60570c
lea ecx, [esp + 0x30]
mov byte [esp + 0x130], 3
call 0x60570c
mov eax, dword [ebp + 0x1d4]
test eax, eax
je 0x591ff2
mov eax, dword [ebp + 0x5c]
mov edi, dword [ebp + 0x1d8]
lea esi, [ebp + 0x1d8]
add eax, 0x54
mov dl, byte [edi]
mov bl, byte [eax]
mov cl, dl
cmp dl, bl
jne 0x591a99
test cl, cl
je 0x591a95
mov dl, byte [edi + 1]
mov bl, byte [eax + 1]
mov cl, dl
cmp dl, bl
jne 0x591a99
add edi, 2
add eax, 2
test cl, cl
jne 0x591a71
xor eax, eax
jmp 0x591a9e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x591ff2
push 1
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
lea edi, [ebp + 0x174]
push 0x5e7ad0
push edi
push eax
call 0x6059a1
call fcn.004de6c0
mov ecx, dword [ebp + 0x5c]
add esp, 8
add ecx, 0x54
push ecx
lea ecx, [esp + 0x34]
call 0x60577a
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x138], 0x19
call fcn.0056a470
add esp, 8
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x134], 0x1a
call 0x605845
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 0x19
call 0x60570c
mov ecx, dword [ebp + 0x5c]
add ecx, 0x54
push ecx
lea ecx, [esp + 0x28]
call 0x60577a
pop es
add byte [ebx + 0x68302454], cl
fsub st(7)
pop edi
add byte [edx - 0x73], dl
dec esp
and al, 0x2c
mov byte [esp + 0x138], 0x1b
mov edx, dword [ebp + 0x5c]
mov edi, dword [ebp + 0x174]
lea ebx, [ebp - 0x3dfffe8c]
mov edi, dword [esp + 0x28]
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 0x198], edx
mov ecx, 0xa
cdq
idiv ecx
mov eax, dword [esp + 0x358]
mov dword [esp + 0xa4], eax
mov dword [esp + 0x194], edx
mov edx, dword [esp + 0x354]
mov dword [esp + 0xa0], edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x364], 8
call 0x65d70c
jmp 0x592d9c
lea ecx, [esp + 0x40]
call 0x65d092
cmp eax, 1
jne 0x593025
test ebp, ebp
jle 0x593025
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
test eax, eax
jl 0x59300b
cmp eax, dword [edi + 0x5ae0]
jge 0x59300b
mov edx, dword [edi + 0x5adc]
lea esi, [eax*8]
sub esi, eax
mov eax, dword [esp + 0x124]
shl esi, 6
push 0x104
mov dword [esi + edx + 0x78], eax
mov ecx, dword [edi + 0x5adc]
mov edx, dword [esp + 0x12c]
mov dword [esi + ecx + 0x98], edx
mov eax, dword [edi + 0x5adc]
mov ecx, dword [esp + 0x130]
mov dword [esi + eax + 0x68], ecx
mov edx, dword [edi + 0x5adc]
mov eax, dword [esp + 0x134]
mov dword [esi + edx + 0x64], eax
mov ecx, dword [edi + 0x5adc]
mov edx, dword [esp + 0x138]
mov dword [esi + ecx + 0x70], edx
mov eax, dword [edi + 0x5adc]
mov ecx, dword [esp + 0x13c]
mov dword [esi + eax + 0x88], ecx
mov edx, dword [edi + 0x5adc]
mov eax, dword [esp + 0x144]
mov dword [esi + edx + 0x74], eax
mov ecx, dword [edi + 0x5adc]
mov edx, dword [esp + 0x148]
mov dword [esi + ecx + 0x94], edx
mov eax, dword [edi + 0x5adc]
mov ecx, dword [esp + 0x14c]
mov dword [esi + eax + 0x6c], ecx
mov edx, dword [edi + 0x5adc]
mov eax, dword [esp + 0x150]
mov dword [esi + edx + 0x84], eax
mov ecx, dword [edi + 0x5adc]
mov edx, dword [esp + 0x154]
mov dword [esi + ecx + 0x5c], edx
mov eax, dword [edi + 0x5adc]
add byte [eax], al
mov ecx, dword [esp + 0x158]
mov dword [esi + eax + 0xa4], ecx
mov edx, dword [edi + 0x5adc]
pop edx
add byte [eax], al
mov eax, dword [esp + 0x15c]
mov dword [esi + edx + 0x9c], eax
mov ecx, dword [edi + 0x5adc]
mov edx, dword [esp + 0x160]
mov dword [esi + ecx + 0x44], edx
mov eax, dword [edi + 0x5adc]
mov ecx, dword [esp + 0x164]
mov dword [esi + eax + 0x8c], ecx
mov edx, dword [edi + 0x5adc]
mov eax, dword [esp + 0x168]
mov dword [esi + edx + 0x4c], eax
mov ecx, dword [edi + 0x5adc]
add byte [ebx + 0x16c2494], cl
add byte [eax], al
mov dword [esi + ecx + 0x60], edx
mov eax, dword [edi + 0x5adc]
mov ecx, dword [esp + 0x170]
mov dword [esi + eax + 0xa8], ecx
mov edx, dword [edi + 0x5adc]
mov eax, dword [esp + 0x174]
mov dword [esi + edx + 0xa0], eax
mov ecx, dword [edi + 0x5adc]
mov edx, dword [esp + 0x178]
mov dword [esi + ecx + 0x48], edx
mov eax, dword [edi + 0x5adc]
mov ecx, dword [esp + 0x17c]
mov dword [esi + eax + 0x90], ecx
mov edx, dword [edi + 0x5adc]
mov eax, dword [esp + 0x180]
mov dword [esi + edx + 0x50], eax
mov ecx, dword [edi + 0x5adc]
mov edx, dword [esp + 0x190]
mov dword [esi + ecx + 0x54], edx
mov eax, dword [edi + 0x5adc]
mov ecx, dword [esp + 0x194]
mov dword [esi + eax + 0x58], ecx
mov eax, dword [edi + 0x5adc]
mov edx, dword [esp + 0x18c]
lea ecx, [esi + eax + 0xac]
push edx
push ecx
call fcn.0052f0b0
sar cl, 0xff
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp ebp, 1
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x194]
lea ecx, [eax + edx*2]
mov edx, dword [edi + 0x5adc]
mov dword [esi + edx + 0x1b4], ecx
jne 0x59300b
mov eax, dword [edi + 0x5adc]
mov ecx, dword [esp + 0xa0]
mov dword [esi + eax + 0x1b8], ecx
mov edx, dword [edi + 0x5adc]
mov eax, dword [esp - 0x367d00]
xor eax, eax
add edx, 0x5168
repne scasb al, byte es:[edi]
add dl, dh
scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call 0x616d59
mov ecx, dword [eax + 4]
call fcn.00513050
mov ebx, dword [ebx]
mov edx, dword [ebp + 0x5c]
xor byte [0x488b0008], bh
add al, 0xe8
pop ds
add al, bh
dec dword [ebx + 0x5c558b1b]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add edx, 0x5168
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x5c]
mov edi, dword [ebp + 0x170]
or ecx, 0xffffffff
add edx, 0x4d58
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [ebp + 0x17c]
call 0x603658
mov eax, dword [ebp + 0x5c]
mov cx, word [esp + 0x2e]
mov edi, dword [0x597610]
mov esi, dword [0x59760c]
cmp cx, word [eax + 0x4d1e]
jne 0x5930c7
mov dx, word [esp + 0x14]
cmp dx, word [eax + 0x4d1c]
je 0x59313b
mov word [eax + 0x4d1e], cx
mov eax, dword [ebp + 0x5c]
mov cx, word [esp + 0x14]
push 0x2006
mov word [eax + 0x4d1c], cx
mov edx, dword [ebp + 0x60]
mov eax, dword [edx + 0x7c]
mov ecx, dword [eax + 0x1c]
push ecx
call esi
mov ecx, dword [ebp + 0x5c]
mov ax, word [ecx + 0x4d1c]
test ax, ax
jne 0x593106
cmp word [ecx + 0x4d1e], ax
je 0x59313b
xor edx, edx
test al, 4
je 0x593111
mov edx, 1
test al, 2
je 0x593118
or edx, 2
invalid