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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 1
mov eax, esi
mov dword [esp + 0x30], 7
mov dword [esp + 0x34], edi
call fcn.00590b90
cmp dword [esi + 0x338], edi
jne 0x590f6f
mov edi, 0xf
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x30]
add ecx, 1
lea eax, [edi + 1]
imul eax, ecx
lea ebx, [eax + eax*4]
shl ebx, 8
push ebx
call fcn.0045d550
mov edi, eax
add esp, 4
test edi, edi
je 0x590f9d
push ebx
push 0
push edi
call fcn.0060c930
add esp, 0xc
test edi, edi
mov ebx, edi
je 0x5917f7
cmp dword [esp + 0x30], 0
mov dword [esp + 0xc], 0
jl 0x5913fb
lea ebx, [ebx]
cmp dword [esp + 0x34], 0
mov dword [esp + 0x10], 0
jl 0x5913e6
mov eax, dword [esp + 0xc]
shl eax, 4
mov dword [esp + 0x64], eax
mov edi, edi
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x10]
add edx, eax
mov dword [esp + edx*4 + 0x88], ebx
mov edi, 0x6b5af8
mov dword [esp + 0x24], 0x40
movsx ecx, byte [edi]
movsx edx, byte [edi + 1]
add edi, 1
movsx eax, byte [edi + 1]
add edi, 1
mov dword [esp + 0x20], eax
movsx eax, byte [edi + 1]
add edi, 1
mov dword [esp + 0x18], eax
movsx eax, byte [edi + 1]
add edi, 1
mov dword [esp + 0x38], eax
movsx eax, byte [edi + 1]
add edi, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
add edx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
add ecx, eax
mov eax, dword [esi + 0x338]
add edi, 1
cmp eax, 1
mov dword [esp + 0x1c], edx
je 0x59106e
and edx, 1
and ecx, 7
lea ecx, [edx + ecx*2]
add ecx, ecx
mov edx, eax
shr edx, cl
and edx, 3
jmp 0x591096
movzx edx, word [esi + 0x464]
add edx, ecx
movzx ecx, word [esi + 0x466]
add ecx, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
and edx, 0xf
shl edx, 4
and ecx, 0xf
movsx edx, byte [edx + ecx + 0x6b4fd8]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
add ecx, edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
add ecx, edx
cmp eax, 1
je 0x5910cf
mov edx, dword [esp + 0x1c]
and edx, 1
and ecx, 7
lea ecx, [edx + ecx*2]
add ecx, ecx
mov edx, eax
shr edx, cl
and edx, 3
jmp 0x5910f7
movzx edx, word [esi + 0x464]
add edx, ecx
movzx ecx, word [esi + 0x466]
add ecx, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
and edx, 0xf
shl edx, 4
and ecx, 0xf
movsx edx, byte [edx + ecx + 0x6b4fd8]
cmp edx, dword [esp + 0x14]
jne 0x591288
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp eax, 1
mov dword [esp + 0x1c], ecx
je 0x591129
mov edx, dword [esp + 0xc]
and edx, 7
and ecx, 1
lea ecx, [ecx + edx*2]
add ecx, ecx
mov edx, eax
shr edx, cl
and edx, 3
jmp 0x591153
movzx ecx, word [esi + 0x464]
add ecx, dword [esp + 0xc]
movzx edx, word [esi + 0x466]
add edx, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
and ecx, 0xf
shl ecx, 4
and edx, 0xf
movsx edx, byte [ecx + edx + 0x6b4fd8]
cmp edx, dword [esp + 0x14]
jne 0x5911ab
mov ecx, dword [esp + 0xc]
add ecx, 1
cmp eax, 1
je 0x59117b
mov edx, dword [esp + 0x10]
and ecx, 7
and edx, 1
lea ecx, [edx + ecx*2]
add ecx, ecx
shr eax, cl
and eax, 3
jmp 0x5911a0
movzx eax, word [esi + 0x464]
add eax, ecx
movzx ecx, word [esi + 0x466]
add ecx, dword [esp + 0x10]
and eax, 0xf
shl eax, 4
and ecx, 0xf
movsx eax, byte [eax + ecx + 0x6b4fd8]
cmp eax, dword [esp + 0x14]
mov ecx, 2
je 0x5911b0
mov ecx, 1
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x20]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jne 0x5911d6
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x18]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
je 0x591288
movzx edx, word [esi + 0x462]
imul edx, dword [esp + 0x3c]
add edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
lea ecx, [eax + edx*4]
mov dword [ebx], ecx
movzx edx, word [esi + 0x462]
imul edx, dword [esp + 0x20]
add edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
add ebx, 4
lea eax, [eax + edx*4]
mov dword [ebx], eax
mov al, byte [esp + 0x28]
add ebx, 4
mov dword [ebx], ecx
add ebx, 4
test al, 1
je 0x591224
mov dword [ebx], 0
add ebx, 4
test al, 2
je 0x591231
mov dword [ebx], 1
add ebx, 4
test al, 4
je 0x59123e
mov dword [ebx], 2
add ebx, 4
test al, 8
je 0x59124b
mov dword [ebx], 3
add ebx, 4
test al, 0x10
je 0x591258
mov dword [ebx], 4
add ebx, 4
test al, 0x20
je 0x591265
mov dword [ebx], 5
add ebx, 4
test al, 0x40
je 0x591272
mov dword [ebx], 6
add ebx, 4
test al, al
jns 0x59127f
mov dword [ebx], 7
add ebx, 4
mov dword [ebx], 0xffffffff
add ebx, 4
sub dword [esp + 0x24], 1
jne 0x590ffe
mov dword [ebx], SysReAllocString
add ebx, 4
mov dword [0x6fde30], 0x6b5c78
mov dword [esp + 0x24], 8
mov edi, edi
mov eax, dword [0x6fde30]
movsx edi, byte [eax]
movzx edx, word [esi + 0x462]
movsx ecx, byte [eax + 1]
imul edx, edi
add eax, 1
add edx, ecx
add edx, edx
add edx, edx
mov dword [ebx], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
add eax, 1
mov dword [0x6fde30], eax
add ebx, 4
call fcn.0057de30
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
add ecx, eax
lea eax, [edi + edx]
mov edx, dword [esi + 0x338]
cmp edx, 1
mov dword [esp + 0x28], ecx
je 0x591325
and eax, 7
and ecx, 1
lea ecx, [ecx + eax*2]
add ecx, ecx
mov eax, edx
shr eax, cl
and eax, 3
jmp 0x59134a
movzx ecx, word [esi + 0x464]
add ecx, eax
movzx eax, word [esi + 0x466]
add eax, dword [esp + 0x28]
and ecx, 0xf
shl ecx, 4
and eax, 0xf
movsx eax, byte [ecx + eax + 0x6b4fd8]
cmp eax, dword [esp + 0x14]
je 0x5913bd
cmp edx, 1
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0xc]
lea ecx, [ecx + edi*2]
je 0x59137d
and ecx, 7
and eax, 1
lea ecx, [eax + ecx*2]
add ecx, ecx
shr edx, cl
and edx, 3
jmp 0x5913a0
movzx edx, word [esi + 0x464]
add edx, ecx
movzx ecx, word [esi + 0x466]
and edx, 0xf
shl edx, 4
add ecx, eax
and ecx, 0xf
movsx edx, byte [edx + ecx + 0x6b4fd8]
mov eax, dword [esp + 0x14]
cmp edx, eax
jne 0x5913bd
movzx edx, word [esi + 0x462]
imul edx, edi
add edx, dword [esp + 0x18]
lea eax, [eax + edx*8]
mov dword [ebx], eax
jmp 0x5913c3
mov dword [ebx], 0
add ebx, 4
sub dword [esp + 0x24], 1
jne 0x5912b0
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
jle 0x590fe0
mov eax, dword [esp + 0xc]
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
jle 0x590fc0
movzx eax, word [esi + 0x462]
lea eax, [eax + eax*2]
lea ebx, [eax*8]
push ebx
call fcn.0045d550
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x2c], edi
je 0x5917f7
push ebx
push 0
push edi
call fcn.0060c930
add esp, 0xc
test edi, edi
je 0x5917f7
movzx eax, word [esi + 0x462]
movzx edx, word [esi + 0x460]
lea ecx, [edi + eax*8]
shl eax, 4
add eax, edi
sub edx, 2
cmp edx, 2
mov ebx, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0xc], 2
jle 0x591771
nop
movzx eax, word [esi + 0x462]
lea ecx, [eax - 2]
cmp ecx, 2
mov dword [esp + 0x10], 2
jle 0x591709
mov ecx, dword [esp + 0xc]
and ecx, dword [esp + 0x30]
shl ecx, 4
add ebx, 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebx
jmp 0x5914a7
mov ecx, dword [esp + 0x28]
imul eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov edi, dword [esi + 0x4d8]
add eax, edx
and edx, dword [esp + 0x34]
lea ebx, [edi + eax*8]
add edx, ecx
mov eax, dword [esp + edx*4 + 0x88]
xor ecx, ecx
mov edx, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov ecx, dword [eax]
cmp ecx, 0x7fffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x68], edx
je 0x591564
movzx ecx, word [ebx + ecx*2]
mov edx, dword [eax + 4]
movzx edx, word [ebx + edx*2]
sub ecx, edx
mov edi, ecx
sar edi, 0x1f
mov edx, edi
xor edx, ecx
mov ecx, dword [eax + 8]
sub edx, edi
shl edx, cl
mov ecx, dword [eax + 0xc]
lea ecx, [esp + ecx*4 + 0x68]
add eax, 0x14
add dword [ecx], edx
mov ecx, dword [eax - 4]
cmp ecx, 0xffffffff
je 0x591556
add dword [esp + ecx*4 + 0x68], edx
lea ecx, [esp + ecx*4 + 0x68]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x591553
add dword [esp + ecx*4 + 0x68], edx
lea ecx, [esp + ecx*4 + 0x68]
mov ecx, dword [eax + 4]
add eax, 4
cmp ecx, 0xffffffff
jne 0x591540
add eax, 4
mov ecx, dword [eax]
cmp ecx, 0x7fffffff
jne 0x591500
mov edx, dword [esp + 0x68]
mov ecx, edx
mov ebx, edx
add eax, 4
mov edx, 1
mov edi, dword [esp + edx*4 + 0x68]
cmp ebx, edi
jle 0x59157a
mov ebx, edi
cmp ecx, edi
jge 0x591580
mov ecx, edi
add edx, 1
cmp edx, 8
jl 0x591570
test ecx, ecx
jne 0x5915a3
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
jmp 0x5916df
mov edx, dword [esi + 0x338]
sar ecx, 1
add ecx, ebx
mov dword [esp + 0x38], ecx
xor ecx, ecx
cmp edx, 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
je 0x5915e2
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
and ecx, 7
and edi, 1
lea ecx, [edi + ecx*2]
add ecx, ecx
shr edx, cl
and edx, 3
jmp 0x591609
movzx edx, word [esi + 0x464]
add edx, dword [esp + 0xc]
movzx ecx, word [esi + 0x466]
add ecx, dword [esp + 0x10]
and edx, 0xf
shl edx, 4
and ecx, 0xf
movsx edx, byte [edx + ecx + 0x6b4fd8]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x38]
cmp dword [esp + edx*4 + 0x68], ecx
jg 0x59166a
xor ecx, ecx
cmp dword [esi + 0x47c], ecx
jle 0x591665
cmp ecx, dword [esp + 0x14]
jne 0x59164a
mov edx, dword [eax + 4]
test edx, edx
je 0x59164a
movzx edx, word [edi + edx*2]
movzx ebx, word [edi + ecx*2]
add edx, ebx
sar edx, 1
jmp 0x591652
mov edx, dword [eax]
add edx, ecx
movzx edx, word [edi + edx*2]
add dword [esp + ecx*4 + 0x40], edx
add ecx, 1
cmp ecx, dword [esi + 0x47c]
jl 0x59162f
mov edx, dword [esp + 0x24]
add dword [esp + 0x1c], 1
add edx, 1
add eax, 8
cmp edx, 8
mov dword [esp + 0x24], edx
jl 0x59161b
xor ecx, ecx
cmp dword [esi + 0x47c], ecx
jle 0x5916df
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
jmp 0x591690
cmp ecx, edx
mov eax, dword [esp + 0x18]
movzx edi, word [eax + edx*2]
je 0x5916b3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + ecx*4 + 0x40]
sub eax, dword [esp + edx*4 + 0x40]
cdq
idiv dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add edi, eax
cmp edi, 0xffff
jge 0x5916c9
xor eax, eax
test edi, edi
setl al
sub eax, 1
and eax, edi
jmp 0x5916ce
mov eax, 0xffff
mov word [ebx], ax
add ecx, 1
add ebx, 2
cmp ecx, dword [esi + 0x47c]
jl 0x591690
movzx eax, word [esi + 0x462]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x20], 8
add ecx, 1
lea edx, [eax - 2]
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x5914a3
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x58]
cmp dword [esp + 0xc], 3
jle 0x591740
movzx eax, word [esi + 0x462]
lea ecx, [eax*8 - 0x20]
push ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffffe
imul ecx, eax
lea edx, [edi + 0x10]
push edx
mov edx, dword [esi + 0x4d8]
lea eax, [edx + ecx*8 + 0x10]
push eax
call fcn.0060d1b0
add esp, 0xc
movzx ecx, word [esi + 0x460]
mov eax, edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x54], ebx
mov ebx, eax
mov eax, dword [esp + 0xc]
add eax, 1
sub ecx, 2
cmp eax, ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0xc], eax
jl 0x591470
movzx eax, word [esi + 0x462]
lea edx, [eax*8 - 0x20]
push edx
mov edx, dword [esi + 0x4d8]
add edi, 0x10
push edi
mov edi, dword [esp + 0x14]
lea ecx, [edi - 2]
imul ecx, eax
lea eax, [edx + ecx*8 + 0x10]
push eax
call fcn.0060d1b0
movzx eax, word [esi + 0x462]
mov edx, dword [esp + 0x60]
add edi, 0xffffffff
imul edi, eax
lea ecx, [eax*8 - 0x20]
mov eax, dword [esi + 0x4d8]
add esp, 0xc
push ecx
add edx, 0x10
push edx
lea ecx, [eax + edi*8 + 0x10]
push ecx
call fcn.0060d1b0
mov edx, dword [esp + 0x38]
add esp, 0xc
push edx
call fcn.0045da90
mov eax, dword [esp + 0x8c]
add esp, 4
push eax
call fcn.0045da90
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
add esi, 0x968ec
push esi
call fcn.0061b7d8
int3