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

Disassembly:
push 0xffffffffffffffff
push 0x5e2c99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xadc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0xa0], ebp
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x40]
lea ebx, [ebp + 0x3c]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0xafc], 0
call fcn.00596600
mov eax, dword [ebp + 0x54]
mov edx, dword [ebp + 0x50]
lea ecx, [ebp + 0x4c]
push eax
push edx
mov dword [esp + 0x44], ecx
call fcn.00596890
mov ecx, dword [esp + 0xb08]
test ecx, ecx
jne 0x594c98
xor eax, eax
jmp 0x594ca4
mov eax, dword [esp + 0xb0c]
sub eax, ecx
sar eax, 3
mov dword [ebp + 0x14], eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0xafc]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0xb00]
mov dword [ebp + 0x20], ecx
mov ecx, dword [ebp + 0x24]
push eax
mov dword [ebp + 0x28], eax
call fcn.00592d40
lea edi, [ebp + 4]
lea edx, [esp + 0xb04]
cmp edi, edx
je 0x594df2
mov eax, dword [esp + 0xb08]
test eax, eax
jne 0x594cea
xor esi, esi
jmp 0x594cf6
mov esi, dword [esp + 0xb0c]
sub esi, eax
sar esi, 3
mov ecx, edi
call fcn.00592bf0
cmp esi, eax
ja 0x594d43
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0xb0c]
mov edx, dword [esp + 0xb08]
push eax
push ecx
push edx
call fcn.00592ca0
mov ecx, dword [edi + 8]
add esp, 0xc
push ecx
push eax
mov ecx, edi
call fcn.005b0ee0
lea ecx, [esp + 0xb04]
call fcn.00592bf0
mov edx, dword [edi + 4]
lea eax, [edx + eax*8]
mov dword [edi + 8], eax
jmp 0x594df2
mov ecx, edi
call fcn.00592c10
lea ecx, [esp + 0xb04]
mov esi, eax
call fcn.00592bf0
cmp eax, esi
ja 0x594d98
mov esi, dword [esp + 0xb08]
mov ecx, edi
call fcn.00592bf0
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0xb08]
lea esi, [esi + eax*8]
push ecx
push esi
push edx
call fcn.00592ca0
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0xb18]
add esp, 0xc
push eax
push ecx
push esi
mov ecx, edi
call fcn.00592c30
jmp 0x594d29
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push ecx
push edx
mov ecx, edi
call fcn.005b0ee0
mov eax, dword [edi + 4]
push eax
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0xb04]
call fcn.00592bf0
test eax, eax
jge 0x594dc5
xor eax, eax
shl eax, 3
push eax
call fcn.005bcf2f
mov ecx, dword [esp + 0xb10]
mov edx, dword [esp + 0xb0c]
add esp, 4
mov dword [edi + 4], eax
push eax
push ecx
push edx
mov ecx, edi
call fcn.00592c30
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov al, byte [esp + 0x12]
xor esi, esi
mov byte [esp + 0x78], al
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov cl, byte [esp + 0x12]
mov dword [esp + 0x30], esi
mov byte [esp + 0x54], cl
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dl, byte [esp + 0x12]
mov dword [esp + 0x48], esi
mov byte [esp + 0x44], dl
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov ecx, dword [esp + 0xb08]
lea eax, [esp + 0xe0]
push eax
mov byte [esp + 0xaf8], 3
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0x30]
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
mov edx, dword [ecx + eax*4 + 0x70]
mov ecx, dword [ebp + 0x28]
push edx
call fcn.00570a60
cmp dword [esp + 0x114], esi
je 0x594ed2
mov eax, dword [esp + 0xf4]
cmp eax, 0xffffffff
je 0x594ed2
mov edi, dword [esp + 0xb00]
lea ecx, [esp + 0xa4]
push ecx
push eax
mov ecx, edi
call fcn.005706b0
cmp dword [esp + 0xa4], 1
jne 0x594ebe
mov eax, dword [esp + 0xb0]
mov ecx, dword [ebp + 0x28]
lea edx, [esp + 0xb4]
push edx
push eax
call fcn.005706e0
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x44]
push ecx
push edx
mov ecx, edi
call fcn.00570790
mov ecx, dword [esp + 0xb08]
lea eax, [esp + 0xe0]
push eax
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x28]
push edx
call fcn.00570a60
cmp dword [esp + 0x114], esi
je case.0x594f15.6
mov ecx, dword [ebp + 0x20]
call fcn.00575730
add eax, 0xfffffffd
cmp eax, 0xd
ja case.0x594f15.6
xor ecx, ecx
mov cl, byte [eax + 0x596048]
jmp dword [ecx*4 + 0x596038]
mov eax, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x64], eax
mov eax, 5
mov dword [esp + 0x2c], 0xffff0000
mov dword [esp + 0x30], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], eax
mov eax, 3
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], 0xfe
cmp eax, esi
mov dword [esp + 0x6c], 7
mov dword [esp + 0x90], 6
mov dword [esp + 0x8c], esi
mov dword [esp + 0x20], esi
je 0x594f8d
mov edx, ecx
sub edx, eax
jne 0x594fa1
lea eax, [esp + 0x12]
mov byte [esp + 0x12], 0x2c
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.00596460
mov edi, 2
mov byte [esp + 0x12], 0x2a
mov dword [esp + 0x28], edi
mov dword [esp + 0x9c], edi
mov byte [esp + 0x13], 0x14
jmp case.0x594f15.6
mov ecx, dword [esp + 0x4c]
mov eax, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x48]
mov edi, 2
cmp eax, esi
mov dword [esp + 0x2c], 0xffff0000
mov dword [esp + 0x34], 0xfa
mov dword [esp + 0x38], esi
mov dword [esp + 0x64], 3
mov dword [esp + 0x94], 5
mov dword [esp + 0x6c], esi
mov dword [esp + 0x90], 6
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x20], esi
je 0x595030
mov edx, ecx
sub edx, eax
jne 0x595044
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0x2c
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.00596460
mov byte [esp + 0x12], 0xaa
mov dword [esp + 0x28], edi
mov dword [esp + 0x9c], edi
mov byte [esp + 0x13], 3
jmp case.0x594f15.6
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], esi
cmp eax, esi
jne 0x59506b
xor ecx, ecx
jmp 0x595071
mov ecx, dword [esp + 0x4c]
sub ecx, eax
cmp ecx, esi
jle 0x595090
mov esi, dword [esp + 0x48]
mov edx, ecx
lea edi, [esp + 0x210]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov dword [esp + 0x64], 3
mov edi, dword [esp + 0xb14]
mov eax, dword [esp + 0xb18]
add eax, edi
mov dword [esp + 0x74], esi
cmp edi, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x88], esi
mov ecx, edi
mov dword [esp + 0x68], eax
jae 0x59510a
mov edx, dword [esp + 0xb08]
lea eax, [edx + edi*8 + 4]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
lea edx, [eax*8]
sub edx, eax
lea edx, [eax + edx*4]
mov eax, dword [ebp + 0x30]
cmp dword [eax + edx*4 + 0x68], esi
jne 0x5950f6
mov eax, ecx
sub eax, edi
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x14]
inc ecx
add eax, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
cmp ecx, eax
jb 0x5950d0
cmp edi, eax
mov dword [esp + 0x24], edi
jae 0x595ca8
mov eax, dword [esp + 0xb08]
mov eax, dword [eax + edi*8 + 4]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [eax + ecx*4]
mov eax, dword [ebp + 0x30]
lea ecx, [eax + edx*4]
mov eax, dword [eax + edx*4 + 0x68]
test eax, eax
jne 0x595c8c
mov eax, dword [ecx + 0x60]
dec eax
je 0x595644
dec eax
je 0x5953ee
mov eax, dword [ebx + 4]
test eax, eax
jne 0x59515b
xor edx, edx
jmp 0x595171
mov edx, dword [ebx + 8]
sub edx, eax
mov eax, 0x551c979b
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
mov dword [esp + 0x14], edx
test edx, edx
jle 0x595196
mov esi, dword [ecx + 8]
mov edx, dword [ebp + 0x40]
cmp dword [edx], esi
je 0x59522c
inc eax
add edx, 0x604
cmp eax, dword [esp + 0x14]
jl 0x595181
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xa0]
mov esi, dword [esp + 0x24]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0xb08]
mov ecx, dword [eax + 0x30]
mov ebp, dword [ebx + 8]
mov eax, dword [edx + esi*8 + 4]
lea edi, [eax*8]
sub edi, eax
lea eax, [eax + edi*4]
mov eax, dword [ecx + eax*4 + 8]
mov dword [esp + 0x4e8], eax
mov eax, dword [edx + esi*8 + 4]
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
mov ecx, dword [ecx + eax*4 + 0x10]
mov eax, 0x551c979b
mov dword [esp + 0x4ec], ecx
mov ecx, dword [ebx + 0xc]
sub ecx, ebp
mov dword [esp + 0x4f0], 0
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x5952f1
mov ecx, ebx
call fcn.005963e0
cmp eax, 1
jbe 0x595234
mov ecx, ebx
call fcn.005963e0
mov esi, eax
jmp 0x595239
mov dword [ecx + 0xc], eax
jmp 0x595c8c
mov esi, 1
mov ecx, ebx
call fcn.005963e0
mov edi, eax
add edi, esi
mov eax, edi
jns 0x59524a
xor eax, eax
lea ecx, [eax + eax*2]
shl ecx, 7
add ecx, eax
shl ecx, 2
push ecx
call fcn.005bcf2f
mov edx, dword [ebx + 4]
add esp, 4
mov esi, eax
mov ecx, ebx
push esi
push ebp
push edx
call fcn.00596f60
lea ecx, [esp + 0x4e8]
mov dword [esp + 0x14], eax
push ecx
push 1
push eax
mov ecx, ebx
call fcn.00596fa0
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
add edx, 0x604
mov ecx, ebx
push edx
push eax
push ebp
call fcn.00596f60
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.005b0ee0
mov eax, dword [ebx + 4]
push eax
call fcn.005bc500
lea ecx, [edi + edi*2]
add esp, 4
shl ecx, 7
add ecx, edi
lea edx, [esi + ecx*4]
mov ecx, ebx
mov dword [ebx + 0xc], edx
call fcn.005963e0
inc eax
mov ebp, dword [esp + 0xa0]
mov dword [ebx + 4], esi
lea ecx, [eax + eax*2]
shl ecx, 7
add ecx, eax
mov eax, dword [esp + 0x1c]
inc eax
lea edx, [esi + ecx*4]
mov dword [esp + 0x1c], eax
mov dword [ebx + 8], edx
jmp 0x595c88
mov ecx, ebp
mov eax, 0x551c979b
sub ecx, ebp
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x59536e
lea ecx, [ebp + 0x604]
push ecx
push ebp
push ebp
mov ecx, ebx
call fcn.00596f60
mov esi, dword [ebx + 8]
lea edx, [esp + 0x4e8]
mov ecx, esi
mov eax, 0x551c979b
sub ecx, ebp
push edx
imul ecx
sar edx, 9
mov eax, edx
mov ecx, 1
shr eax, 0x1f
add edx, eax
sub ecx, edx
push ecx
push esi
mov ecx, ebx
call fcn.00596fa0
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x5953ce
mov edi, ebp
add ebp, 0x604
mov ecx, 0x181
lea esi, [esp + 0x4e8]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x595352
jmp 0x5953ce
lea eax, [ebp - 0x604]
push ebp
push ebp
push eax
mov ecx, ebx
mov dword [esp + 0x7c], eax
call fcn.00596f60
mov edx, dword [ebx + 8]
lea eax, [edx - 0x604]
cmp ebp, eax
je 0x5953a9
sub eax, 0x604
sub edx, 0x604
mov ecx, 0x181
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x59538f
lea edx, [ebp + 0x604]
mov eax, ebp
cmp ebp, edx
je 0x5953ce
mov edi, eax
add eax, 0x604
mov ecx, 0x181
lea esi, [esp + 0x4e8]
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x5953b5
mov eax, dword [ebx + 8]
mov ebp, dword [esp + 0xa0]
add eax, 0x604
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
jmp 0x595c88
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0xb00]
lea edx, [esp + 0xa4]
mov ecx, esi
push edx
push eax
call fcn.005706b0
cmp dword [esp + 0xa4], 1
jne 0x595cbb
mov edx, dword [esp + 0xb0]
lea ecx, [esp + 0xb4]
push ecx
mov ecx, dword [ebp + 0x28]
push edx
call fcn.005706e0
mov ecx, dword [esp + 0xb4]
lea eax, [esp + 0x54]
push eax
push ecx
mov ecx, esi
call fcn.00570790
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x59544e
xor ecx, ecx
jmp 0x595454
mov ecx, dword [esp + 0x5c]
sub ecx, eax
mov edx, dword [esp + 0xb08]
mov dword [esp + 0x14], ecx
mov eax, dword [edx + edi*8 + 4]
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0x30]
mov dword [edx + eax*4 + 0x34], 0xffffffff
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0x30]
add edx, eax
mov eax, dword [esp + 0xb08]
mov eax, dword [eax + edi*8 + 4]
lea esi, [eax*8]
sub esi, eax
lea eax, [eax + esi*4]
mov esi, dword [ebp + 0x30]
mov dword [esi + eax*4 + 0x40], edx
mov eax, dword [esp + 0xc8]
test eax, 0xfffffff8
jne 0x5954da
mov edx, dword [esp + 0xb08]
mov esi, dword [esp + 0xc4]
mov eax, dword [edx + edi*8 + 4]
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0x30]
mov dword [edx + eax*4 + 0x44], esi
jmp 0x5954fc
mov eax, dword [esp + 0xb08]
mov eax, dword [eax + edi*8 + 4]
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0x30]
mov dword [edx + eax*4 + 0x44], 7
mov eax, dword [esp + 0xb08]
mov esi, dword [esp + 0xc8]
mov eax, dword [eax + edi*8 + 4]
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
mov edx, dword [ebp + 0x30]
mov dword [edx + eax*4 + 0x48], esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4e8], eax
mov eax, 1
mov dword [esp + 0x4f0], eax
mov word [esp + 0x4f4], ax
mov ax, word [esp + 0x64]
or edx, 0xffffffff
xor esi, esi
mov dword [esp + 0x4ec], edx
test ecx, ecx
mov word [esp + 0x4f6], ax
mov dword [esp + 0x4f8], edx
jbe 0x595581
mov eax, dword [esp + 0x58]
xor ecx, ecx
lea edx, [esp + esi + 0x4fc]
mov cl, byte [eax + esi]
mov eax, dword [esp + 0x14]
inc esi
mov ch, cl
cmp esi, eax
mov byte [edx], cl
jb 0x595564
mov eax, dword [ebx + 4]
test eax, eax
jne 0x59558c
xor edx, edx
jmp 0x5955a2
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x551c979b
imul ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
xor esi, esi
test edx, edx
jle 0x5955c3
mov eax, dword [ebp + 0x40]
mov cl, byte [esp + 0x4fc]
add eax, 0x14
cmp byte [eax], cl
je 0x595618
inc esi
add eax, 0x604
cmp esi, edx
jl 0x5955b5
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x4e8]
push ecx
push 1
push edx
mov ecx, ebx
mov dword [esp + 0x4fc], 1
call fcn.00596c10
mov eax, dword [esp + 0xb08]
mov eax, dword [eax + edi*8 + 4]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [eax + ecx*4]
mov ecx, dword [ebp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [ecx + edx*4 + 0xc], eax
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
jmp 0x595c8c
mov edx, dword [esp + 0xb08]
mov eax, dword [edx + edi*8 + 4]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [eax + ecx*4]
mov eax, dword [ebp + 0x30]
mov dword [eax + edx*4 + 0xc], esi
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
jmp 0x595c8c
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0xb00]
lea edx, [esp + 0xa4]
mov ecx, esi
push edx
push eax
call fcn.005706b0
cmp dword [esp + 0xa4], 1
jne 0x595d22
mov edx, dword [esp + 0xb0]
lea ecx, [esp + 0xb4]
push ecx
mov ecx, dword [ebp + 0x28]
push edx
call fcn.005706e0
mov ecx, dword [esp + 0xb4]
lea eax, [esp + 0x54]
push eax
push ecx
mov ecx, esi
call fcn.00570790
mov ecx, dword [esp + 0x58]
test ecx, ecx
jne 0x5956a6
mov dword [esp + 0x14], ecx
jmp 0x5956b0
mov eax, dword [esp + 0x5c]
sub eax, ecx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0xb08]
mov eax, dword [edx + edi*8 + 4]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [eax + ecx*4]
mov eax, dword [ebp + 0x30]
mov dword [eax + edx*4 + 0x34], 0xffffffff
mov ecx, dword [esp + 0xb08]
mov eax, dword [ecx + edi*8 + 4]
mov ecx, dword [ebp + 0x30]
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x30]
mov dword [ecx + eax*4 + 0x40], edx
mov eax, dword [esp + 0xc8]
shr eax, 3
jne 0x59572c
mov ecx, dword [esp + 0xb08]
mov esi, dword [esp + 0xc4]
mov eax, 1
mov ecx, dword [ecx + edi*8 + 4]
lea edx, [ecx*8]
sub edx, ecx
lea ecx, [ecx + edx*4]
mov edx, dword [ebp + 0x30]
mov dword [edx + ecx*4 + 0x44], esi
jmp 0x59574e
mov ecx, dword [esp + 0xb08]
mov ecx, dword [ecx + edi*8 + 4]
lea edx, [ecx*8]
sub edx, ecx
lea ecx, [ecx + edx*4]
mov edx, dword [ebp + 0x30]
mov dword [edx + ecx*4 + 0x44], 7
mov ecx, dword [esp + 0xb08]
mov esi, dword [esp + 0xc8]
mov ecx, dword [ecx + edi*8 + 4]
lea edx, [ecx*8]
sub edx, ecx
lea ecx, [ecx + edx*4]
mov edx, dword [ebp + 0x30]
mov dword [edx + ecx*4 + 0x48], esi
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x18]
mov dl, byte [esi]
mov byte [esp + ecx + 0x120], dl
mov cl, byte [esi + 1]
mov esi, dword [esp + 0x18]
mov byte [esp + esi + 0x121], cl
mov ecx, dword [esp + 0xb08]
mov ecx, dword [ecx + edi*8 + 4]
lea esi, [ecx*8]
sub esi, ecx
lea ecx, [ecx + esi*4]
mov esi, dword [ebp + 0x30]
mov byte [esi + ecx*4 + 0x64], dl
mov edx, dword [esp + 0xb08]
mov esi, dword [esp + 0x58]
mov ecx, dword [edx + edi*8 + 4]
lea edx, [ecx*8]
sub edx, ecx
lea ecx, [ecx + edx*4]
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x70], edx
mov dl, byte [esi + 1]
mov esi, dword [esp + 0x70]
mov byte [esi + ecx*4 + 0x65], dl
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add ecx, eax
add esi, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x8c]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x90]
cmp ecx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x30], edx
jge 0x595956
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x88]
cmp eax, ecx
je 0x595956
mov eax, dword [esp + 0x6c]
cmp esi, eax
jl 0x59592f
test eax, eax
je 0x59592f
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x595851
xor eax, eax
jmp 0x595857
mov eax, dword [esp + 0x4c]
sub eax, esi
test eax, eax
jle 0x595872
mov ecx, eax
lea edi, [esp + 0x120]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x34]
mov byte [esp + eax + 0x120], cl
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x59589e
mov dl, byte [esp + 0x94]
add dl, cl
mov cl, byte [esp + 0x20]
shl dl, 3
or dl, cl
mov byte [esp + eax + 0x121], dl
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x120]
mov ecx, eax
lea edi, [esp + 0x3f8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x3f4], eax
lea eax, [esp + 0x3f4]
mov edx, dword [ecx + 8]
push eax
push 1
push edx
call fcn.005a5610
mov eax, dword [esp + 0x38]
test eax, eax
je 0x5958f4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0xb08]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], 0
mov eax, dword [edx + eax*8 + 4]
mov dword [esp + 0x18], ecx
lea ecx, [eax*8]
sub ecx, eax
lea edx, [eax + ecx*4]
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x1c]
mov dword [eax + edx*4 + 0xc], ecx
jmp 0x595c88
mov edx, dword [esp + 0xb08]
mov eax, dword [edx + edi*8 + 4]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [eax + ecx*4]
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x1c]
mov dword [eax + edx*4 + 0xc], ecx
jmp 0x595c8c
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x595962
xor eax, eax
jmp 0x595968
mov eax, dword [esp + 0x4c]
sub eax, edx
test eax, eax
jle 0x595989
mov ecx, eax
mov esi, edx
mov edx, ecx
lea edi, [esp + 0x120]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x6c]
mov cl, byte [esp + 0x34]
test edx, edx
mov byte [esp + eax + 0x120], cl
je 0x5959d9
mov cl, byte [esp + 0x94]
add cl, byte [esp + 0x38]
shl cl, 3
or cl, byte [esp + 0x20]
cmp esi, edx
mov byte [esp + eax + 0x121], cl
jge 0x5959d9
mov ecx, edx
lea edi, [esp + esi + 0x120]
sub ecx, esi
or eax, 0xffffffff
mov esi, ecx
mov dword [esp + 0x18], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x120]
mov ecx, eax
lea edi, [esp + 0x3f8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x3f4], eax
lea eax, [esp + 0x3f4]
mov edx, dword [ecx + 8]
push eax
push 1
push edx
call fcn.005a5610
mov eax, dword [esp + 0x2c]
mov dx, word [esp + 0x64]
mov dword [esp + 0x4e8], eax
mov eax, 1
or ecx, 0xffffffff
mov dword [esp + 0x4f0], eax
mov word [esp + 0x4f4], ax
mov eax, dword [ebx + 4]
mov dword [esp + 0x4ec], ecx
mov dword [esp + 0x4f8], ecx
mov cl, byte [esp + 0x34]
mov word [esp + 0x4f6], dx
test eax, eax
mov ch, cl
mov byte [esp + 0x4fc], cl
jne 0x595a6e
xor edx, edx
jmp 0x595a84
mov edx, dword [ebx + 8]
sub edx, eax
mov eax, 0x551c979b
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
xor esi, esi
test edx, edx
jle 0x595aa2
mov eax, dword [ebp + 0x40]
add eax, 0x14
cmp byte [eax], cl
je 0x595bbb
inc esi
add eax, 0x604
cmp esi, edx
jl 0x595a90
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x4e8]
push ecx
push 1
push edx
mov ecx, ebx
call fcn.00596c10
mov eax, dword [esp + 0xb08]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + ecx*8 + 4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [eax + edx*4]
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [edx + ecx*4 + 0xc], eax
inc eax
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x28]
mov al, byte [esp + 0x34]
mov byte [esp + edx + 0x210], al
mov eax, dword [esp + 0x6c]
inc edx
test eax, eax
mov dword [esp + 0x28], edx
je 0x595be2
mov esi, dword [esp + 0x90]
cmp edx, esi
jge 0x595b20
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x74]
cmp eax, ecx
jne 0x595c4e
mov al, byte [esp + 0x12]
mov cl, byte [esp + 0x13]
cmp edx, esi
mov byte [esp + 0x210], al
mov byte [esp + 0x211], cl
jge 0x595b5a
mov ecx, esi
lea edi, [esp + edx + 0x210]
sub ecx, edx
or eax, 0xffffffff
mov edx, ecx
mov dword [esp + 0x28], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x210]
mov ecx, eax
lea edi, [esp + 0x304]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x300], eax
lea eax, [esp + 0x300]
push eax
push 1
push ecx
lea ecx, [esp + 0x84]
call fcn.005a5610
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x9c]
add al, 0x10
mov dword [esp + 0x28], edx
mov byte [esp + 0x13], al
jmp 0x595c4e
mov ecx, dword [esp + 0xb08]
mov edx, dword [esp + 0x24]
mov eax, dword [ecx + edx*8 + 4]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [eax + ecx*4]
mov eax, dword [ebp + 0x30]
mov dword [eax + edx*4 + 0xc], esi
jmp 0x595ae2
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x74]
cmp ecx, eax
jne 0x595c4e
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x28]
mov dl, byte [esp + 0x13]
mov byte [esp + 0x210], cl
mov ecx, eax
mov byte [esp + 0x211], dl
mov edx, ecx
lea esi, [esp + 0x210]
lea edi, [esp + 0x304]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x300], eax
lea eax, [esp + 0x300]
push eax
push 1
push ecx
lea ecx, [esp + 0x84]
call fcn.005a5610
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
inc ecx
dec eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x8c], eax
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x68]
inc edx
inc edi
cmp edi, eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x24], edi
jb 0x595116
xor esi, esi
mov ecx, dword [esp + 0x7c]
cmp ecx, esi
jne 0x595d89
xor edx, edx
jmp 0x595da3
mov edx, dword [esp + 0x48]
push edx
call fcn.005bc500
mov eax, dword [esp + 0x5c]
xor esi, esi
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call fcn.005bc500
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x60], esi
push ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
call fcn.005bc500
mov edx, dword [esp + 0xb14]
mov dword [esp + 0x88], esi
push edx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
call fcn.005bc500
add esp, 0x10
xor eax, eax
jmp 0x59601c
mov eax, dword [esp + 0x48]
push eax
call fcn.005bc500
mov ecx, dword [esp + 0x5c]
xor esi, esi
push ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call fcn.005bc500
mov edx, dword [esp + 0x84]
mov dword [esp + 0x60], esi
push edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
call fcn.005bc500
mov eax, dword [esp + 0xb14]
mov dword [esp + 0x88], esi
push eax
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
call fcn.005bc500
add esp, 0x10
xor eax, eax
jmp 0x59601c
mov edx, dword [esp + 0x80]
mov eax, 0x4325c53f
sub edx, ecx
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, esi
jle 0x595fb7
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x68], edx
jmp 0x595dc1
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x40]
mov eax, 0x4325c53f
lea edi, [edx + ecx]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x3c], edi
sub edx, ecx
mov ebp, ecx
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x595ec4
mov eax, dword [ebx + 4]
test eax, eax
je 0x595e11
sub ecx, eax
mov eax, 0x4325c53f
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 1
mov esi, edx
ja 0x595e16
mov esi, 1
mov ecx, ebx
call fcn.00596430
mov edi, eax
add edi, esi
mov eax, edi
jns 0x595e27
xor eax, eax
mov edx, eax
shl edx, 5
sub edx, eax
shl edx, 1
sub edx, eax
shl edx, 2
push edx
call fcn.005bcf2f
add esp, 4
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, ebx
push esi
push ebp
push eax
call fcn.00596fe0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x70], eax
push ecx
push 1
push eax
mov ecx, ebx
call fcn.00597020
mov edx, dword [esp + 0x70]
mov eax, dword [ebx + 8]
add edx, 0xf4
mov ecx, ebx
push edx
push eax
push ebp
call fcn.00596fe0
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.005b0ee0
mov eax, dword [ebx + 4]
push eax
call fcn.005bc500
mov ecx, edi
add esp, 4
shl ecx, 5
sub ecx, edi
shl ecx, 1
sub ecx, edi
lea edx, [esi + ecx*4]
mov ecx, ebx
mov dword [ebx + 0xc], edx
call fcn.00596430
inc eax
mov dword [ebx + 4], esi
mov ecx, eax
shl ecx, 5
sub ecx, eax
shl ecx, 1
sub ecx, eax
lea edx, [esi + ecx*4]
mov dword [ebx + 8], edx
jmp 0x595f9a
mov edx, ecx
mov eax, 0x4325c53f
sub edx, ebp
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x595f37
lea edx, [ebp + 0xf4]
push edx
push ecx
push ebp
mov ecx, ebx
call fcn.00596fe0
mov esi, dword [ebx + 8]
mov eax, 0x4325c53f
mov ecx, esi
push edi
sub ecx, ebp
imul ecx
sar edx, 6
mov eax, edx
mov ecx, 1
shr eax, 0x1f
add edx, eax
sub ecx, edx
push ecx
push esi
mov ecx, ebx
call fcn.00597020
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x595f93
mov esi, dword [esp + 0x3c]
mov edi, ebp
add ebp, 0xf4
mov ecx, 0x3d
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x595f1e
jmp 0x595f93
lea eax, [ecx - 0xf4]
push ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x7c], eax
call fcn.00596fe0
mov edx, dword [ebx + 8]
lea eax, [edx - 0xf4]
cmp ebp, eax
je 0x595f72
sub eax, 0xf4
sub edx, 0xf4
mov ecx, 0x3d
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x595f58
lea eax, [ebp + 0xf4]
cmp ebp, eax
je 0x595f93
mov esi, dword [esp + 0x3c]
mov edi, ebp
add ebp, 0xf4
mov ecx, 0x3d
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x595f7c
add dword [ebx + 8], 0xf4
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x68]
add ecx, 0xf4
dec eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x68], eax
jne 0x595dbd
mov edx, dword [esp + 0x48]
push edx
call fcn.005bc500
mov eax, dword [esp + 0x5c]
xor esi, esi
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call fcn.005bc500
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x60], esi
push ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
call fcn.005bc500
mov edx, dword [esp + 0xb14]
mov dword [esp + 0x88], esi
push edx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
call fcn.005bc500
add esp, 0x10
mov eax, 1
mov ecx, dword [esp + 0xaec]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xae8
ret 0x20