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

Disassembly:
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x90]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x30]
call fcn.0058fa28
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x3368]
imul edx, dword [edi + 0x2d70]
add ebx, edx
mov dword [esp + 0x104], ebx
jmp 0x590168
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov cl, byte [edx + 0x31ca]
test cl, cl
je 0x590491
lea ecx, [eax*4 + 4]
mov dword [esp + 0x48], ecx
mov ecx, 1
sub ecx, dword [esp + 0x68]
mov dword [esp + 0x7c], ecx
cmp eax, dword [esp + 0x40]
jge 0x590491
mov edx, dword [ebp + 0x3c]
lea ecx, [edx + eax]
mov dword [esp + 0x34], ecx
mov dl, byte [ecx]
cmp dl, byte [ecx + 1]
jne 0x590205
mov ecx, dword [esp + 0x40]
dec ecx
cmp eax, ecx
je 0x590205
mov edx, dword [ebp + 0x38]
lea ecx, [edx + eax]
movsx edx, byte [edx + eax]
test edx, edx
jl 0x5901d1
cmp edx, 0x20
jl 0x590205
movsx ecx, byte [ecx + 1]
test ecx, ecx
jl 0x5901de
cmp ecx, 0x20
jl 0x590205
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
cmp edx, ecx
je 0x5901f9
mov ecx, dword [esp + 0x68]
lea ecx, [eax + ecx + 1]
cmp ecx, edx
je 0x590205
cmp ecx, dword [ebp + 0x2c]
je 0x590205
mov edx, dword [ebp + 0x34]
dec edx
cmp eax, edx
jne 0x59046f
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x44]
mov edx, dword [esp + 0x50]
shl eax, 2
mov eax, dword [ecx + eax]
sub eax, edx
mov edx, dword [esp + 0x48]
add eax, ebx
mov ecx, dword [ecx + edx]
mov edx, dword [esp + 0x50]
sub ecx, edx
mov dword [esp + 0x1c], eax
add ecx, ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x110]
cmp eax, ecx
jg 0x590457
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x108]
cmp eax, ecx
jl 0x590457
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov cl, byte [edx]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x80], ecx
mov ecx, dword [ebp + 0x28]
add eax, edx
cmp eax, ecx
jl 0x590283
mov edx, dword [ebp + 0x2c]
cmp eax, edx
jge 0x590283
cmp ecx, edx
mov byte [esp + 0x64], 1
jne 0x590288
mov byte [esp + 0x64], 0
mov ecx, dword [ebp + 0x4c]
cmp ecx, 0xffffffff
je 0x5902a0
cmp eax, ecx
jl 0x5902a0
mov ecx, dword [ebp + 0x50]
mov byte [esp + 0x4c], 1
cmp eax, ecx
jl 0x5902a5
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x4c]
push ebp
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x54]
push edi
push eax
call fcn.0058f8d8
mov ecx, dword [ebp + 0x38]
mov edx, dword [esp + 0x30]
mov al, byte [edx + ecx]
cmp al, 9
jne 0x590338
mov al, byte [esp + 0x1b]
test al, al
je 0x590307
mov al, byte [esp + 0x13]
test al, al
je 0x5902fd
cmp dword [edi + 0x2e3c], 1
jne 0x590307
mov eax, dword [edi + 0x2dac]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
add dword [ebx - 0x76cbdbbc], ecx
inc ecx
add al, 0x8b
inc esp
and al, 0x38
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
jmp 0x590457
movsx eax, al
test eax, eax
jl 0x59034b
cmp eax, 0x20
jge 0x59034b
mov byte [esp + 0x13], 0
jmp 0x590307
mov eax, dword [esp + 0x38]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [edi + 0x2e3c]
test eax, eax
jne 0x59039b
mov al, byte [esp + 0x13]
test al, al
je 0x590457
mov al, byte [edi + 0x2e40]
test al, al
je 0x590457
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
sub eax, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], eax
js 0x590457
lea eax, [edx*4]
mov dword [esp + 0x3c], eax
jmp 0x5903c6
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x38]
add edx, ecx
cmp byte [edx + eax], 0x20
jne 0x590436
mov al, byte [esp + 0x1b]
test al, al
je 0x59043b
mov al, byte [esp + 0x13]
test al, al
je 0x5903ea
cmp dword [edi + 0x2e3c], 1
jne 0x59043b
mov ebp, dword [ebp + 0x44]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + ebp]
mov edx, dword [esp + 0x2c]
add ecx, edx
add eax, ebx
mov edx, dword [esi]
mov ecx, dword [ebp + ecx*4 + 4]
mov ebp, dword [edi + 0x2dac]
push ebp
add ecx, ebx
sub esp, 0x10
mov ebp, esp
mov byte [esp + 0x13], 0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
inc ecx
add edx, 4
cmp ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edx
jle 0x5903c2
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x68]
add eax, edx
add eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
inc eax
add edx, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x14]
invalid
mov cl, dl
xor dword [eax], eax
mov al, byte [edx + 0x31ca]
test al, al
je 0x590507
mov ecx, dword [edi + 0x2da0]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x110]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x128]
push edx
push ebp
mov edx, dword [esp + 0x134]
sub esp, 0x10
mov eax, esp
push edi
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x150]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x154]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0xc], edx
call fcn.0058fb98
mov ecx, dword [esp + 0x11c]
mov al, byte [esp + 0x5a]
test ecx, ecx
mov byte [esp + 0x13], al
jg 0x590524
mov dword [esp + 0x2c], 0
jmp 0x590540
cmp ecx, dword [ebp + 0x58]
jge 0x590539
mov eax, dword [ebp + 4]
test eax, eax
je 0x590539
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x2c], ecx
jmp 0x590540
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x40]
cmp edx, eax
mov dword [esp + 0x30], edx
jge 0x590f42