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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x84]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi]
mov ebx, dword [eax + 0x54]
mov edx, dword [ebx + 0x9c]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [esi + 8]
or ecx, 0x2000
mov dword [ebp - 0x54], edx
mov edx, dword [ebp + 0x10]
push ecx
push edx
push eax
call fcn.005549c0
add esp, 0xc
test eax, eax
jne 0x59296e
mov eax, dword [ebp - 0x54]
mov cl, byte [eax + 8]
mov byte [esi + 0x88], cl
test cl, cl
je 0x59218b
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x8c], ecx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x90], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x94], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x98], edx
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x9c], ecx
mov edx, dword [eax + 0x20]
mov ecx, dword [esi + 0x90]
mov eax, dword [esi + 0x8c]
mov dword [ebp - 0x10], ecx
mov dword [esi + 0xa0], edx
mov edx, dword [esi + 0x94]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x98]
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call fcn.00551530
lea edx, [ebp - 0x14]
push edx
lea eax, [esi + 0x9c]
push eax
call fcn.00552b60
add esp, 0xc
mov eax, dword [ebx + 0x48]
cmp eax, 0x636f6d70
je 0x59262d
cmp eax, 0x6f75746c
je 0x59234d
mov dword [ebp - 0x40], 7
cmp dword [ebp + 0x18], 0
jne 0x59296b
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebp - 0x3c]
sub ecx, dword [ebx + 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x18], eax
cmp byte [esi + 0x88], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
je 0x592257
lea eax, [esi + 0x8c]
push eax
lea edx, [edi + 0x14]
push edx
call fcn.00552bc0
lea eax, [esi + 0x8c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00552b60
add esp, 0x10
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x592272
push 0
neg eax
push eax
lea ecx, [edi + 0x14]
push ecx
call fcn.00552b20
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
lea eax, [edi + 0x14]
push eax
call fcn.00552a90
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
and dword [ebp - 0x10], 0xffffffc0
add eax, 0x3f
and eax, 0xffffffc0
and edx, 0xffffffc0
mov dword [ebp - 0xc], eax
sub eax, edx
add ecx, 0x3f
and ecx, 0xffffffc0
mov dword [ebx + 0x18], eax
mov eax, ecx
sub eax, dword [ebp - 0x10]
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], ecx
mov dword [ebp - 0x14], edx
add edx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
add ecx, dword [ebp - 0x24]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x4c]
and edx, 0xffffffc0
and ecx, 0xffffffc0
add esp, 8
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], ecx
cmp dword [eax + 0x14], 1
je 0x5928ad
mov ecx, dword [ebx + 4]
test byte [ecx + 8], 4
jne 0x592302
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
call fcn.0058e0a0
test al, al
je 0x5928ad
mov edx, dword [ebp - 0x3c]
cmp byte [edx + 0x20], 0
je 0x5928ad
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
mov edx, dword [ebx + 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x94], eax
jmp 0x5928c2
cmp byte [esi + 0x88], 0
je 0x592370
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x9c]
push eax
push ecx
lea edx, [ebx + 0x6c]
push edx
call fcn.00552b20
add esp, 0xc
movsx eax, word [ebx + 0x6e]
lea ecx, [eax + 4]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x592391
movsx ecx, word [edi + 0x3a]
movsx edx, word [edi + 0x16]
add ecx, eax
lea eax, [edx + ecx + 4]
cmp eax, dword [edi + 4]
ja 0x5923b4
movzx eax, word [ebx + 0x6c]
test ax, ax
je 0x59257c
movsx ecx, word [edi + 0x38]
movsx edx, word [edi + 0x14]
cwde
add ecx, edx
add ecx, eax
cmp ecx, dword [edi + 8]
jbe 0x59257c
movsx ecx, word [ebx + 0x6c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
push edi
call fcn.00556040
add esp, 0xc
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x59296e
movsx eax, word [ebx + 0x6e]
mov ecx, dword [ebx + 0x70]
mov edx, dword [edi + 0x3c]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
push edx
call sub.MSVCR100.dll_memcpy
movsx eax, word [ebx + 0x6c]
mov ecx, dword [ebx + 0x78]
mov edx, dword [edi + 0x44]
add eax, eax
push eax
push ecx
push edx
call sub.MSVCR100.dll_memcpy
movsx eax, word [ebx + 0x6e]
mov ecx, dword [ebx + 0x74]
mov edx, dword [edi + 0x40]
push eax
push ecx
push edx
call sub.MSVCR100.dll_memcpy
mov ax, word [ebx + 0x6e]
mov word [edi + 0x3a], ax
mov cx, word [ebx + 0x6c]
mov word [edi + 0x38], cx
mov edx, dword [esi + 0x14]
mov dword [esi + 0xa4], edx
mov eax, dword [esi + 0x1c]
mov dword [esi + 0xa8], eax
mov ecx, dword [esi + 0x10]
mov edx, dword [ebx + 0x28]
add esp, 0x24
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x30], eax
mov ecx, dword [esi + 0x14]
add ecx, dword [ebp - 0x30]
lea eax, [esi + 0xc]
mov dword [esi + 0xac], ecx
mov edx, dword [eax + 0x10]
mov dword [esi + 0xb0], edx
cmp word [ebx + 0x6e], 0
je 0x5921ab
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
test edx, edx
je 0x59249d
push ecx
lea ecx, [edi + 0x38]
push ecx
push eax
call edx
add esp, 0xc
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x14], 1
je 0x5925d4
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x4c]
lea edx, [ecx + ecx*2]
add edx, edx
lea edx, [eax + edx*8 - 0x30]
mov dword [ebp - 0x30], edx
cmp ecx, 1
jle 0x592588
test byte [esi + 0x70], 4
jne 0x592588
mov ecx, dword [esi + 0xac]
sub ecx, dword [edx + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
sub eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
add eax, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2c], edx
cmp edx, 0x18
jge 0x5924fd
sub dword [ebp - 0x34], 8
cmp ecx, 0x18
jge 0x592505
add eax, 8
mov ecx, dword [ebp - 0x34]
add ecx, 0x20
and ecx, 0xffffffc0
lea edx, [eax + 0x20]
and edx, 0xffffffc0
mov dword [esi + 0xa4], ecx
mov dword [ebp - 0x24], edx
mov dword [esi + 0xac], edx
cmp ecx, dword [ebp - 0x18]
jl 0x592537
cmp dword [ebp - 0x2c], 0
jle 0x592537
add ecx, 0xffffffc0
mov dword [esi + 0xa4], ecx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
cmp ecx, dword [edx + 8]
jg 0x592551
cmp dword [ebp - 0x48], 0
jle 0x592551
add ecx, 0x40
mov dword [esi + 0xac], ecx
mov ecx, dword [esi + 0xa4]
sub ecx, dword [ebp - 0x34]
push edi
mov dword [ebx + 0x90], ecx
mov edx, dword [esi + 0xac]
sub edx, eax
mov dword [ebx + 0x94], edx
call fcn.005518d0
add esp, 4
jmp 0x5921ab
mov dword [ebp - 0x40], 0
jmp 0x5923d1
mov ecx, dword [esi + 0xa4]
mov edx, dword [esi + 0xac]
mov dword [ebp - 0x18], edx
lea eax, [ecx + 0x20]
and eax, 0xffffffc0
mov dword [esi + 0xa4], eax
add edx, 0x20
sub eax, ecx
and edx, 0xffffffc0
mov dword [esi + 0xac], edx
mov dword [ebx + 0x90], eax
mov eax, dword [esi + 0xac]
sub eax, dword [ebp - 0x18]
push edi
mov dword [ebx + 0x94], eax
call fcn.005518d0
add esp, 4
jmp 0x5921ab
mov eax, dword [esi + 0xa4]
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0xac]
lea edx, [edx + eax + 0x20]
and edx, 0xffffffc0
mov dword [esi + 0xa4], edx
mov edx, dword [esi + 0x80]
lea edx, [edx + ecx + 0x20]
and edx, 0xffffffc0
mov dword [esi + 0xac], edx
mov edx, dword [esi + 0xa4]
sub edx, eax
mov dword [ebx + 0x90], edx
mov eax, dword [esi + 0xac]
sub eax, ecx
push edi
mov dword [ebx + 0x94], eax
call fcn.005518d0
add esp, 4
jmp 0x5921ab
mov eax, dword [ebx + 0x80]
movsx ecx, word [edi + 0x16]
push eax
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x48], ecx
call fcn.005561a0
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x59296e
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x84]
mov ecx, dword [edi + 0x58]
shl edx, 5
push edx
push eax
push ecx
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x30]
add esp, 0xc
mov dword [edi + 0x54], ecx
mov dword [ebp - 0x18], 0
test ecx, ecx
je 0x5921ab
shl eax, 5
mov dword [ebp - 0x44], eax
lea ebx, [ebx]
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xa4]
mov eax, dword [edi + 0x34]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
mov ecx, dword [esi + 0xb0]
mov dword [ebp - 0x5c], edx
mov edx, dword [esi + 0xac]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xc], edx
movsx edx, word [edi + 0x16]
inc ecx
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
mov dword [ebp - 0x34], edx
mov edx, dword [eax]
mov eax, dword [ebp - 0x4c]
push edx
push eax
push esi
call fcn.005920b0
add esp, 0x14
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x59296e
mov eax, dword [edi + 0x34]
add eax, dword [ebp - 0x44]
mov ecx, 0x200
mov dword [ebp - 0x20], eax
test word [eax + 4], cx
jne 0x59271d
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
mov dword [esi + 0xa4], edx
mov edx, dword [ebp - 0xc]
mov dword [esi + 0xa8], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 0xac], edx
mov dword [esi + 0xb0], ecx
movsx ecx, word [edi + 0x16]
mov edx, dword [ebp - 0x34]
sub ecx, edx
test byte [eax + 4], 0xc8
mov dword [ebp - 0x50], ecx
je 0x59276b
mov ecx, dword [edi + 0x18]
lea ecx, [ecx + edx*8]
mov edx, dword [ebp - 0x50]
lea edx, [ecx + edx*8]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x1c], edx
cmp ecx, edx
jae 0x592768
jmp 0x59274a
mov ecx, dword [ebp - 0x38]
add eax, 0x10
push eax
push ecx
call fcn.00552b60
mov eax, dword [ebp - 0x38]
add eax, 8
add esp, 8
cmp eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
jb 0x592747
mov edx, dword [ebp - 0x34]
test byte [eax + 4], 2
jne 0x5927be
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x48]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp eax, edx
jae 0x592897
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x50]
jae 0x592897
mov ecx, dword [edi + 0x18]
add eax, edx
add eax, dword [ebp - 0x48]
lea edx, [ecx + eax*8]
mov eax, dword [ebp - 0x20]
mov eax, dword [ecx + eax*8]
sub eax, dword [edx]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ecx + edx*8 + 4]
mov edx, dword [ebp - 0x1c]
sub ecx, dword [edx + 4]
jmp 0x59283e
mov ecx, dword [esi + 0x10]
mov edx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x14]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [esi + 0x1c]
mov edx, dword [ebp - 0x2c]
add eax, 0x20
lea ecx, [ecx + edx + 0x20]
and eax, 0xffffffc0
and ecx, 0xffffffc0
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x68], edx
mov edx, dword [edi + 0x20]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x64], edx
mov edx, dword [edi + 0x24]
mov dword [ebp - 0x70], ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x60], edx
mov edx, dword [ebp - 0x34]
lea ecx, [ecx + edx*8]
mov dx, word [ebp - 0x50]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x20]
push ecx
mov word [ebp - 0x6e], dx
push eax
lea edx, [ebp - 0x70]
push edx
call fcn.00552b20
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x44], 0x20
inc eax
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x30]
jb 0x592690
jmp 0x5921ab
pop edi
pop esi
mov eax, 0x15
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x28], 0
je 0x5928c2
mov ecx, dword [esi + 0xac]
sub ecx, dword [esi + 0xa4]
mov dword [ebx + 0x28], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebx + 0x34]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x18], eax
mov edx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x54]
add edx, 0x20
add eax, 0x20
and edx, 0xffffffc0
and eax, 0xffffffc0
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x34], eax
mov ecx, dword [esi]
push ecx
call fcn.00551830
mov edx, dword [esi]
push edi
push edx
call fcn.00556200
add esp, 0xc
test eax, eax
jne 0x59296e
mov ecx, dword [esi]
movzx edx, word [ecx + 0x14]
mov word [ebx + 0x6c], dx
mov ecx, dword [esi]
movzx edx, word [ecx + 0x16]
mov word [ebx + 0x6e], dx
mov ecx, dword [esi]
mov edx, dword [ecx + 0x18]
mov dword [ebx + 0x70], edx
mov ecx, dword [esi]
mov edx, dword [ecx + 0x1c]
mov dword [ebx + 0x74], edx
mov ecx, dword [esi]
mov edx, dword [ecx + 0x20]
pop edi
pop esi
mov dword [ebx + 0x78], edx
mov dword [ebx + 0x48], 0x6f75746c
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00596083
mov esp, ebp
pop ebp
ret