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

Disassembly:
sub esp, 0x254
mov eax, dword [0x7161c0]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x260]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x264]
push edi
mov ebp, ecx
mov dword [esp + 0x34], eax
call fcn.00525740
mov ecx, eax
mov eax, dword [esp + 0x26c]
mov edi, edx
cdq
add ecx, eax
adc edi, edx
add ecx, 4
mov dword [esp + 0x40], ecx
adc edi, 0
mov ebx, ecx
mov ecx, ebp
mov dword [esp + 0x44], edi
call fcn.00525740
cmp edx, edi
jg 0x5923c7
jl 0x591db0
cmp eax, ebx
jae 0x5923c7
lea ebx, [ebx]
mov ecx, dword [esi + 0x12]
or ecx, dword [esi + 0x16]
je 0x591dc4
mov edx, dword [esi + 0x22]
or edx, dword [esi + 0x26]
jne 0x5923c7
push 1
push 0x20
mov ecx, ebp
call fcn.00525760
cmp eax, 1
jne 0x591dd8
test edx, edx
je 0x591de8
push 0
push 8
mov ecx, ebp
call fcn.00525760
jmp 0x5923a6
mov ecx, ebp
call fcn.00525740
push 0
push 0x20
mov ecx, ebp
mov edi, eax
mov ebx, edx
call fcn.00525760
push 0
push 8
mov ecx, ebp
call fcn.00525760
mov cl, al
and cl, 0x9f
cmp cl, 7
jne 0x5922e6
test al, 0x60
je 0x5922e6
push 0x100
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x1c]
call fcn.00603470
push 0
push 0x100
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebp
mov dword [esi + 0xa], edi
mov dword [esi + 0xe], ebx
call fcn.00525840
push 0x100
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x168]
push eax
mov ecx, ebp
call fcn.005914b0
push 0
push 8
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
push 8
lea ecx, [esp + 0x1c]
mov byte [esi], al
call fcn.00603300
push 0
push 8
lea ecx, [esp + 0x1c]
call fcn.00603300
lea ecx, [esp + 0x14]
mov byte [esi + 1], al
call fcn.006033c0
cmp byte [esi], 0x64
jb 0x591f60
lea ecx, [esp + 0x14]
call fcn.006033c0
cmp eax, 3
jne 0x591ec3
test edx, edx
jne 0x591ec3
push edx
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
lea ecx, [esp + 0x14]
call fcn.006033c0
lea ecx, [esp + 0x14]
call fcn.006033c0
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
or eax, edx
je 0x591f60
mov dword [esp + 0x10], 0
jmp 0x591f00
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
or eax, edx
je 0x591f50
xor eax, eax
xor edi, edi
cmp dword [esp + 0x10], 6
lea ebx, [edi + 8]
setge al
sub eax, 1
and eax, 0xffffffd0
add eax, 0x40
test eax, eax
mov dword [esp + 0x48], eax
jle 0x591f50
test ebx, ebx
je 0x591f50
lea ecx, [esp + 0x14]
call fcn.00603410
add eax, ebx
and eax, 0xff
add edi, 1
cmp edi, dword [esp + 0x48]
mov ebx, eax
jl 0x591f31
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 8
mov dword [esp + 0x10], eax
jl 0x591f00
lea ecx, [esp + 0x14]
call fcn.006033c0
lea ecx, [esp + 0x14]
call fcn.006033c0
mov ecx, eax
or ecx, edx
jne 0x591f83
lea ecx, [esp + 0x14]
call fcn.006033c0
jmp 0x591fdf
cmp eax, 1
jne 0x591fdf
test edx, edx
jne 0x591fdf
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00603300
lea ecx, [esp + 0x14]
call fcn.00603410
lea ecx, [esp + 0x14]
call fcn.00603410
lea ecx, [esp + 0x14]
call fcn.006033c0
mov ebx, edx
xor edi, edi
test ebx, ebx
mov dword [esp + 0x50], eax
jb 0x591fdf
ja 0x591fc4
test eax, eax
jbe 0x591fdf
lea ecx, [esp + 0x14]
call fcn.00603410
add edi, 1
mov eax, edi
cdq
cmp edx, ebx
jb 0x591fc4
ja 0x591fdf
cmp eax, dword [esp + 0x50]
jb 0x591fc4
lea ecx, [esp + 0x14]
call fcn.006033c0
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
lea ecx, [esp + 0x14]
call fcn.006033c0
lea ecx, [esp + 0x14]
mov edi, eax
mov dword [esp + 0x4c], edx
call fcn.006033c0
push 0
push 1
lea ecx, [esp + 0x1c]
mov ebx, eax
mov dword [esp + 0x54], edx
call fcn.00603300
movzx edx, al
mov ecx, 2
sub ecx, edx
add ebx, 1
imul ecx, ebx
add edi, 1
shl ecx, 4
shl edi, 4
cmp ecx, 0x440
mov dword [esi + 2], edi
mov dword [esi + 6], ecx
jne 0x59204e
mov dword [esi + 6], 0x438
test al, al
jne 0x59205f
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
or eax, edx
je 0x5920a1
lea ecx, [esp + 0x14]
call fcn.006033c0
lea ecx, [esp + 0x14]
call fcn.006033c0
lea ecx, [esp + 0x14]
call fcn.006033c0
lea ecx, [esp + 0x14]
call fcn.006033c0
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
or eax, edx
je 0x5922c7
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
or eax, edx
je 0x5920f2
push 0
push 8
lea ecx, [esp + 0x1c]
call fcn.00603300
cmp al, 0xff
jne 0x5920f2
push 0
push 0x10
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
push 0x10
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
or eax, edx
je 0x592110
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
or eax, edx
je 0x592173
push 0
push 3
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
or eax, edx
je 0x592173
push 0
push 8
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
push 8
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
push 8
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
or eax, edx
je 0x592196
lea ecx, [esp + 0x14]
call fcn.006033c0
lea ecx, [esp + 0x14]
call fcn.006033c0
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00603300
or eax, edx
je 0x5922c7
push 0
push 0x20
lea ecx, [esp + 0x1c]
call fcn.00603300
push 0
mov ebx, eax
push 0x20
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov edi, edx
call fcn.00603300
push 0
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
call fcn.00603300
test edi, edi
jl 0x592208
jg 0x5921f0
cmp ebx, 0x3e8
jb 0x592208
test edi, edi
jl 0x592283
jg 0x592204
cmp dword [esp + 0x38], 0x3e9
jbe 0x592283
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edi
push ebx
push eax
push ecx
call fcn.005dfae0
or eax, edx
je 0x59224e
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push 0
push 0x3e9
push edx
push eax
call fcn.005d9dc0
mov ecx, dword [esp + 0x38]
push edi
push ecx
push edx
push eax
call fcn.005dd1c0
or ecx, ebx
jne 0x59224e
mov dword [esp + 0x38], 0x3e9
jmp 0x592279
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push 0
push 0x3e8
push edx
push eax
call fcn.005d9dc0
mov ecx, dword [esp + 0x38]
push edi
push ecx
push edx
push eax
call fcn.005da540
mov dword [esp + 0x38], 0x3e8
xor edi, edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push 0
push 2
push edx
push eax
call fcn.005da540
mov ebx, eax
mov ecx, ebx
or ecx, edx
mov dword [esp + 0x30], edx
je 0x5922c7
mov edx, dword [esp + 0x38]
push 0
push 0x989680
push edi
push edx
call fcn.005d9dc0
mov ecx, dword [esp + 0x30]
push ecx
push ebx
push edx
push eax
call fcn.005da540
mov dword [esi + 0x2a], eax
mov dword [esi + 0x2e], edx
mov edi, dword [ebp]
lea ecx, [esp + 0x14]
add edi, 0xc
call fcn.00603450
add eax, dword [esi + 0xa]
mov ecx, ebp
adc edx, dword [esi + 0xe]
push edx
mov edx, dword [edi]
push eax
call edx
jmp 0x5922f5
cmp cl, 8
jne 0x5922f5
test al, 0x60
je 0x5922f5
mov dword [esi + 0x1a], edi
mov dword [esi + 0x1e], ebx
mov ecx, ebp
call fcn.00525820
push 1
push 0x20
mov ecx, ebp
call fcn.00525760
mov ebx, dword [esp + 0x44]
mov ecx, ebp
mov edi, eax
call fcn.00525740
cmp edx, ebx
jg 0x59235e
jl 0x592320
cmp eax, dword [esp + 0x40]
jae 0x59235e
cmp edi, 1
je 0x59235e
and edi, 0xffffff00
cmp edi, 0x100
je 0x59235e
push 0
push 8
mov ecx, ebp
call fcn.00525760
push 1
push 0x20
mov ecx, ebp
call fcn.00525760
mov ecx, ebp
mov edi, eax
call fcn.00525740
cmp edx, ebx
jl 0x592320
jg 0x59235e
cmp eax, dword [esp + 0x40]
jb 0x592320
mov eax, dword [esi + 0xa]
or eax, dword [esi + 0xe]
je 0x592383
mov ecx, dword [esi + 0x12]
or ecx, dword [esi + 0x16]
jne 0x592383
mov ecx, ebp
call fcn.00525740
sub eax, dword [esi + 0xa]
sbb edx, dword [esi + 0xe]
mov dword [esi + 0x12], eax
mov dword [esi + 0x16], edx
jmp 0x5923a6
mov edx, dword [esi + 0x1a]
or edx, dword [esi + 0x1e]
je 0x5923a6
mov eax, dword [esi + 0x22]
or eax, dword [esi + 0x26]
jne 0x5923a6
mov ecx, ebp
call fcn.00525740
sub eax, dword [esi + 0x1a]
sbb edx, dword [esi + 0x1e]
mov dword [esi + 0x22], eax
mov dword [esi + 0x26], edx
mov ecx, ebp
call fcn.00525740
mov ecx, dword [esp + 0x44]
cmp edx, ecx
jl 0x591db0
jg 0x5923c7
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jb 0x591db0
mov ecx, dword [esi + 0xa]
or ecx, dword [esi + 0xe]
je 0x5925fa
mov edx, dword [esi + 0x12]
or edx, dword [esi + 0x16]
je 0x5925fa
mov eax, dword [esi + 0x1a]
or eax, dword [esi + 0x1e]
je 0x5925fa
mov ecx, dword [esi + 0x22]
or ecx, dword [esi + 0x26]
je 0x5925fa
mov edx, dword [esi + 0x2a]
or edx, dword [esi + 0x2e]
je 0x5925fa
cmp byte [esi + 1], 0xa
jb 0x5925fa
cmp dword [esp + 0x34], 0
je 0x5925f6
mov eax, dword [esi + 0x22]
mov ecx, dword [esi + 0x12]
mov edx, dword [0x63338c]
mov ebx, dword [esp + 0x34]
mov dword [ebx], edx
lea edi, [eax + ecx - 4]
mov eax, dword [0x633390]
mov dword [ebx + 4], eax
mov ecx, dword [0x633394]
mov dword [ebx + 8], ecx
mov edx, dword [0x633398]
mov dword [ebx + 0xc], edx
mov edx, 0x31435641
mov dword [ebx + 0x10], edx
mov word [esp + 0x54], 0
mov word [esp + 0x56], 0x10
mov edx, dword [esp + 0x54]
mov dword [ebx + 0x14], edx
mov eax, 0xaa000080
mov dword [ebx + 0x18], eax
mov ecx, 0x719b3800
mov dword [ebx + 0x1c], ecx
mov eax, dword [0x63389c]
mov dword [ebx + 0x2c], eax
mov ecx, dword [0x6338a0]
mov dword [ebx + 0x30], ecx
mov edx, dword [0x6338a4]
mov dword [ebx + 0x34], edx
mov eax, dword [0x6338a8]
mov dword [ebx + 0x38], eax
lea eax, [edi + 0x84]
push eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x38], eax
call fcn.005b4663
mov ecx, dword [esp + 0x38]
push ecx
mov edi, eax
push 0
push edi
call fcn.005d9e90
mov edx, dword [esi + 0x2a]
mov dword [edi + 0x28], edx
mov eax, dword [esi + 0x2e]
mov dword [edi + 0x2c], eax
mov ecx, dword [esi + 2]
mov dword [edi + 0x38], ecx
mov edx, dword [esi + 6]
mov dword [edi + 0x3c], edx
mov dword [edi + 0x48], 0x28
mov eax, dword [esi + 2]
mov dword [edi + 0x4c], eax
mov ecx, dword [esi + 6]
mov dword [edi + 0x50], ecx
mov ecx, dword [esp + 0x58]
mov dword [edi + 0x58], 0x31435641
movzx edx, byte [esi]
mov dword [edi + 0x78], edx
mov dword [edi + 0x80], 4
movzx eax, byte [esi + 1]
mov dword [edi + 0x7c], eax
mov dword [edi + 0x74], ecx
mov eax, dword [esi + 0x12]
lea edx, [edi + 0x84]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x16]
add esp, 0x10
sub eax, 4
sbb edx, 0
mov cl, 8
call fcn.005e1080
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
movzx eax, byte [esi + 0x12]
sub al, 4
add ecx, 1
mov byte [ecx], al
mov edx, dword [ebp]
mov eax, dword [esi + 0xa]
add ecx, 1
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0xe]
mov edx, dword [edx + 0xc]
add eax, 4
adc ecx, 0
push ecx
push eax
mov ecx, ebp
call edx
mov eax, dword [esi + 0x12]
mov ecx, dword [esi + 0x16]
mov edx, dword [esp + 0x10]
sub eax, 4
sbb ecx, 0
push ecx
push eax
push edx
mov ecx, ebp
call fcn.00525840
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x12]
lea edx, [ecx + eax - 4]
mov eax, dword [esi + 0x22]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x26]
sub eax, 4
sbb edx, 0
mov cl, 8
call fcn.005e1080
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
movzx eax, byte [esi + 0x22]
add ecx, 1
sub al, 4
mov byte [ecx], al
mov eax, dword [esi + 0x1a]
mov edx, dword [ebp]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x1e]
add eax, 4
adc ecx, 0
push ecx
push eax
mov ecx, ebp
call edx
mov eax, dword [esi + 0x22]
mov ecx, dword [esi + 0x26]
mov edx, dword [esp + 0x10]
sub eax, 4
sbb ecx, 0
push ecx
push eax
add edx, 1
push edx
mov ecx, ebp
call fcn.00525840
mov eax, dword [esp + 0x34]
push eax
push edi
mov ecx, ebx
call fcn.00497110
push edi
call fcn.005b465e
add esp, 4
mov al, 1
jmp 0x5925fc
xor al, al
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005d8d34
add esp, 0x254
ret 0xc