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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 0x134]
xor ebx, ebx
cmp esi, ebx
je 0x594fb0
mov ebp, dword [eax + 0x270]
cmp ebp, ebx
je 0x594fb0
cmp edi, ebx
je 0x594fb0
cmp dword [esp + 0x94], ebx
je 0x594fb0
add ebp, 0x7c
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0057b9a0
push edi
push 0x63d9ec
lea edi, [esp + 0x38]
call fcn.0057f5d0
add esp, 8
test eax, eax
je 0x593683
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x84]
mov dword [ecx], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, ebp
mov dword [esp + 0x10], ebx
call fcn.0057a810
test eax, eax
jle 0x593dbb
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5936b5
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x10], eax
jb 0x5936ba
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov esi, dword [esp + 0x10]
mov eax, dword [edx + esi*4]
mov ecx, dword [esp + 0x74]
mov ebx, dword [eax]
push ecx
call fcn.00592660
mov ecx, dword [ebp + 4]
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x5936e7
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x5936ec
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov esi, dword [edx + esi*4]
test esi, esi
je 0x593da1
movzx eax, byte [esi]
and eax, 1
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x593da1
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 0x270]
xor eax, eax
cmp dword [ecx + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x1c], eax
mov esi, ebp
je 0x5937e2
mov ebx, dword [esp + 0x10]
mov edi, ebx
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x74]
mov esi, dword [edx + 0x134]
mov edi, dword [eax + 8]
add eax, 8
call fcn.0057b9a0
mov ecx, dword [esp + 0x18]
push ecx
push edi
lea edi, [esp + 0x38]
call fcn.0057f5d0
mov edx, dword [esp + 0x88]
mov eax, dword [edx]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x9c], eax
add eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
add eax, ecx
add esp, 8
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x1c], eax
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x14]
add eax, 0xc
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x7c]
add dword [ecx], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x1c], edx
jmp 0x593814
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov edx, dword [ecx]
mov edi, dword [esp + 0x10]
mov ebx, dword [eax]
mov dword [esp + 0x14], edx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
add eax, 0xc
mov dword [eax + 4], ebx
mov dword [eax + 0xc], ebx
mov dword [eax], ecx
mov dword [eax + 8], ecx
mov ebx, edi
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x270]
cmp dword [ecx + 0x30], 2
jne 0x5939ab
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x74]
add eax, 0x3c
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov eax, dword [edx + 0x134]
mov ecx, dword [eax + 0x58]
mov eax, dword [ecx + 0x3c]
test eax, eax
mov dword [esp + 0x20], eax
je 0x5939ab
call fcn.0057a830
mov edx, dword [eax]
cmp dword [edx + 0x38], 0
je 0x5939ab
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov edi, dword [esp + 0x20]
call fcn.005a00f0
mov esi, eax
test esi, esi
je 0x5939ab
mov edx, dword [esi]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edx, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x74]
mov esi, dword [edx + 0x134]
mov edi, eax
push ecx
push edi
call fcn.0057b0a0
mov ecx, dword [esp + 0x8c]
add eax, dword [ecx]
lea esi, [esp + 0x68]
push eax
push edi
call fcn.00579ee0
add esp, 0x10
test eax, eax
je 0x5939ab
mov edx, dword [esp + 0x7c]
mov ecx, dword [edx]
mov edx, dword [esp + 0x80]
mov edi, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [ecx + 3]
mov dword [esp + 0x40], eax
mov eax, dword [edx]
mov edx, dword [esp + 0x84]
mov edx, dword [edx]
lea esi, [edx + eax*2]
mov eax, edi
sub eax, dword [esp + 0x6c]
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
lea ecx, [eax + ecx + 3]
mov eax, dword [esp + 0x6c]
sub eax, edi
add eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x4c], eax
mov eax, ecx
sub eax, dword [esp + 0x40]
mov dword [esp + 0x48], ecx
je 0x5939ab
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x44]
je 0x5939ab
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x7c]
add edx, 3
mov dword [ecx], edx
mov edx, dword [esp + 0x94]
lea eax, [edx + eax + 6]
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x94], eax
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add eax, 0x3c
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5939be
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5939c3
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
test byte [ecx], 8
mov edi, ebx
mov esi, ebp
je 0x593a0a
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x20], edx
call fcn.0057a830
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx]
mov eax, dword [eax]
push edx
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x7c]
call fcn.005931a0
jmp 0x593a38
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x74]
mov esi, dword [edx + 0x134]
mov edi, dword [eax + 4]
add eax, 4
call fcn.0057b9a0
mov ecx, dword [esp + 0x18]
push ecx
push edi
lea edi, [esp + 0x38]
call fcn.0057f5d0
add esp, 8
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x593a4b
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x593a50
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov eax, dword [edx + ebx*4]
mov ecx, dword [esp + 0x7c]
mov ecx, dword [ecx]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x80]
mov edx, dword [edx]
add dword [esp + 0x94], esi
add eax, 0x1c
mov dword [eax], ecx
add ecx, esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
add edx, ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 4]
test eax, eax
je 0x593a99
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x593a9e
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov eax, dword [edx + ebx*4]
test dword [eax], 0x2000
je 0x593ab8
mov ecx, dword [esp + 0x74]
add ecx, 0x2ec
jmp 0x593b36
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x40000
je 0x593adb
mov edx, dword [esp + 0x74]
add edx, 0x32c
mov dword [esp + 0x14], edx
jmp 0x593b3a
mov edi, ebx
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x1000000
jne 0x593b2c
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000000
jne 0x593b2c
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x400000
jne 0x593b1d
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x100
je 0x593cf1
mov eax, dword [esp + 0x74]
add eax, 0x36c
mov dword [esp + 0x14], eax
jmp 0x593b3a
mov ecx, dword [esp + 0x74]
add ecx, 0x3ec
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x14], 0
je 0x593cf1
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x1c]
add eax, 0x1c
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 8
je 0x593be4
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x18], ecx
call fcn.0057a830
mov dword [esp + 0x20], eax
call fcn.0057a830
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x18]
push edx
push ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x7c]
add ecx, 0x1c
lea edx, [esp + 0x58]
call fcn.00593550
test eax, eax
jne 0x593be4
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x1c]
add eax, 0x1c
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x18], eax
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x2c], edx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
add eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x24], edx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
add eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add eax, 0x4c
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc], edx
xor eax, eax
cmp dword [ecx + 0x10], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
je 0x593cd2
mov edx, ecx
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + 0xc]
test eax, eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jle 0x593cd6
test ecx, ecx
jle 0x593cd6
call fcn.0057a830
mov eax, dword [eax]
add dword [eax + 0x4c], 1
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
add eax, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0x54], edx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0x58], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x94]
lea edx, [ecx + eax + 1]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x7c]
add dword [eax], ecx
mov dword [esp + 0x94], edx
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx]
mov edx, dword [esp + 0x94]
cmp eax, edx
jg 0x593d07
mov eax, edx
mov dword [ecx], eax
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x593d1c
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x593d21
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov eax, dword [edx + ebx*4]
mov edi, dword [esp + 0x74]
mov dword [eax + 0x2c], 1
mov esi, dword [edi + 0x134]
call fcn.0057bdb0
test eax, eax
jne 0x593d6a
mov esi, dword [edi + 0x134]
call fcn.0057b050
mov edx, dword [esp + 0x90]
mov ecx, eax
add ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x7c]
add dword [eax], ecx
mov eax, dword [esp + 0x80]
mov dword [eax], edx
jmp 0x593da1
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
cmp edi, eax
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x7c]
mov dword [edx], ecx
jg 0x593d85
mov edi, eax
mov eax, dword [esp + 0x74]
mov esi, dword [eax + 0x134]
call fcn.0057b0a0
mov ecx, eax
mov eax, dword [esp + 0x80]
add ecx, edi
add dword [eax], ecx
mov esi, dword [esp + 0x10]
add esi, 1
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.0057a810
cmp esi, eax
jl 0x5936a0
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov esi, dword [ebx + 0x134]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], eax
call fcn.0057bdb0
test eax, eax
jne 0x5941a4
xor edi, edi
jmp 0x593e00
mov eax, dword [ebx + 0x270]
mov ecx, dword [eax + 0x80]
add eax, 0x7c
test ecx, ecx
jne 0x593e17
xor eax, eax
jmp 0x593e1f
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x5941a4
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x593e3a
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x593e3f
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x594198
movzx ecx, byte [ecx]
and ecx, 1
xor edx, edx
test ecx, ecx
sete dl
mov ecx, edx
test ecx, ecx
je 0x594198
cmp dword [esp + 0x84], 0
mov ecx, dword [ebx + 0x270]
jne 0x593fab
cmp dword [ecx + 0x90], 0
mov dword [esp + 0x84], 1
je 0x593ee8
test eax, eax
je 0x593e9c
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x593ea1
call fcn.005d29f1
mov esi, dword [ebp + 4]
test esi, esi
je 0x593eb4
mov eax, dword [ebp + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x593eb9
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov ecx, dword [esi + edi*4]
mov eax, dword [edx + edi*4]
mov edx, dword [ecx + 0x10]
cmp edx, dword [eax + 0x20]
mov esi, ebp
jge 0x593edf
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x80], ecx
jmp 0x593f0d
call fcn.0057a830
mov edx, dword [eax]
jmp 0x593f03
test eax, eax
je 0x593ef8
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x593efd
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x20]
mov dword [esp + 0x80], eax
mov ecx, dword [ebx + 0x270]
cmp dword [ecx + 0x90], 0
mov ecx, dword [ebp + 4]
je 0x593f7d
test ecx, ecx
je 0x593f2f
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x593f34
call fcn.005d29f1
mov esi, dword [ebp + 4]
test esi, esi
je 0x593f47
mov eax, dword [ebp + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x593f4c
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov ecx, dword [esi + edi*4]
mov eax, dword [edx + edi*4]
mov edx, dword [ecx + 0x18]
cmp edx, dword [eax + 0x28]
mov esi, ebp
jle 0x59418a
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x7c], ecx
add edi, 1
jmp 0x593e00
test ecx, ecx
je 0x593f8d
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x593f92
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x28]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x7c], eax
add edi, 1
jmp 0x593e00
cmp dword [ecx + 0x90], 0
je 0x59400c
test eax, eax
je 0x593fc4
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x593fc9
call fcn.005d29f1
mov esi, dword [ebp + 4]
test esi, esi
je 0x593fdc
mov eax, dword [ebp + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x593fe1
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov ecx, dword [esi + edi*4]
mov eax, dword [edx + edi*4]
mov edx, dword [ecx + 0x10]
cmp edx, dword [eax + 0x20]
mov esi, ebp
jge 0x594000
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
jmp 0x59402a
call fcn.0057a830
mov ecx, dword [eax]
mov eax, dword [ecx + 0x20]
jmp 0x59402a
test eax, eax
je 0x59401c
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x594021
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 0x20]
cmp dword [esp + 0x80], eax
jl 0x594097
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x270]
cmp dword [edx + 0x90], 0
mov esi, ebp
je 0x594086
call fcn.0057a830
mov ebx, dword [eax]
add ebx, 0x20
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebx]
jge 0x594073
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x80], eax
jmp 0x594097
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x80], edx
jmp 0x594097
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x270]
cmp dword [eax + 0x90], 0
mov ecx, dword [ebp + 4]
je 0x594105
test ecx, ecx
je 0x5940bd
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5940c2
call fcn.005d29f1
mov esi, dword [ebp + 4]
test esi, esi
je 0x5940d5
mov eax, dword [ebp + 8]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x5940da
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [esi + edi*4]
mov edx, dword [ecx + edi*4]
mov ecx, dword [eax + 0x18]
cmp ecx, dword [edx + 0x28]
mov esi, ebp
jle 0x5940f9
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
jmp 0x594123
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
jmp 0x594123
test ecx, ecx
je 0x594115
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x59411a
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x28]
cmp dword [esp + 0x7c], eax
jg 0x594198
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x270]
cmp dword [ecx + 0x90], 0
mov esi, ebp
je 0x59418a
call fcn.0057a830
mov ebx, dword [eax]
add ebx, 0x28
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
cmp eax, dword [ebx]
jle 0x594170
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x7c], edx
add edi, 1
jmp 0x593e00
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x7c], ecx
add edi, 1
jmp 0x593e00
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x28]
mov dword [esp + 0x7c], eax
mov ebx, dword [esp + 0x74]
add edi, 1
jmp 0x593e00
xor ebx, ebx
mov eax, ebp
mov dword [esp + 0x94], ebx
mov dword [esp + 0x84], ebx
call fcn.0057a810
test eax, eax
jle 0x594d85
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5941d6
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5941db
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x594d73
movzx esi, byte [ecx]
and esi, 1
xor ecx, ecx
test esi, esi
sete cl
test ecx, ecx
je 0x594d73
mov edi, dword [esp + 0x74]
mov ecx, dword [edi + 0x270]
cmp dword [ecx + 0x90], 0
je 0x594291
test eax, eax
je 0x594225
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x59422a
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov esi, dword [eax + 0x18]
sub esi, dword [eax + 0x10]
add eax, 0xc
test ecx, ecx
je 0x594249
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x59424e
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov edx, dword [eax + 0x28]
sub edx, dword [eax + 0x20]
add eax, 0x1c
cmp esi, edx
jle 0x594281
test ecx, ecx
je 0x594271
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594276
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
add ecx, 0xc
jmp 0x5942af
test ecx, ecx
je 0x5942a1
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jmp 0x59429f
test eax, eax
je 0x5942a1
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x5942a6
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
add ecx, 0x1c
mov esi, dword [ecx + 0xc]
sub esi, dword [ecx + 4]
mov ecx, dword [edi + 0x270]
cmp dword [ecx + 0x90], 0
je 0x59431c
test eax, eax
je 0x5942d4
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x5942d9
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov edi, dword [eax + 0x18]
sub edi, dword [eax + 0x10]
add eax, 0xc
test ecx, ecx
je 0x5942f8
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5942fd
call fcn.005d29f1
mov eax, esi
sub eax, edi
add eax, 1
cdq
sub eax, edx
mov edx, dword [ebp + 4]
sar eax, 1
push eax
mov eax, dword [edx + ebx*4]
push 0
add eax, 0xc
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x59432f
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594334
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov edi, dword [eax + 0x28]
sub edi, dword [eax + 0x20]
add eax, 0x1c
test ecx, ecx
je 0x594353
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594358
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, esi
sub eax, edi
add eax, 1
cdq
sub eax, edx
mov edx, dword [ecx + ebx*4]
sar eax, 1
push eax
push 0
add edx, 0x1c
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp + 4]
test eax, eax
je 0x59438a
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x59438f
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
test dword [eax], 0x3442100
je 0x594444
test ecx, ecx
je 0x5943b1
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5943b6
call fcn.005d29f1
mov esi, dword [ebp + 4]
test esi, esi
je 0x5943c9
mov eax, dword [ebp + 8]
sub eax, esi
sar eax, 2
cmp ebx, eax
jb 0x5943ce
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [esi + ebx*4]
mov edx, dword [ecx + ebx*4]
mov eax, dword [eax + 0x20]
mov dword [edx + 0x50], eax
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5943f0
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5943f5
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea edi, [ecx + ebx*4]
je 0x59440b
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594410
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov esi, dword [eax + 0x58]
sub esi, dword [eax + 0x50]
add eax, 0x4c
test ecx, ecx
je 0x59442f
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594434
call fcn.005d29f1
mov ecx, dword [edi]
mov edx, dword [ecx + 0x50]
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
add edx, esi
mov dword [ecx + 0x58], edx
mov edx, dword [esp + 0x74]
mov esi, dword [edx + 0x134]
mov eax, dword [esi + 0x58]
test eax, eax
mov edi, 2
je 0x594468
mov eax, dword [eax + 8]
test eax, eax
je 0x594468
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x594483
mov edi, dword [eax + 0xb4]
mov eax, dword [eax + 8]
test eax, eax
je 0x594483
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x594625
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x270]
cmp dword [ecx + 0x90], edi
je 0x594512
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5944b0
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5944b5
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea edi, [ecx + ebx*4]
je 0x5944cb
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5944d0
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov esi, dword [eax + 0x18]
sub esi, dword [eax + 0x10]
add eax, 0xc
test ecx, ecx
je 0x5944ef
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5944f4
call fcn.005d29f1
mov edx, dword [edi]
mov eax, dword [esp + 0x7c]
sub eax, dword [edx + 0x10]
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx*4]
sub eax, esi
push eax
push 0
add edx, 0xc
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x594525
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x59452a
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
test byte [eax], 8
je 0x5945b3
test ecx, ecx
je 0x594549
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x59454e
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea edi, [ecx + ebx*4]
je 0x594564
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594569
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov esi, dword [eax + 0x28]
sub esi, dword [eax + 0x20]
add eax, 0x1c
test ecx, ecx
je 0x594588
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x59458d
call fcn.005d29f1
mov eax, dword [esp + 0x7c]
mov ecx, dword [edi]
sub eax, esi
add eax, dword [esp + 0x80]
cdq
sub eax, edx
mov edx, dword [ebp + 4]
sar eax, 1
sub eax, dword [ecx + 0x20]
push eax
mov eax, dword [edx + ebx*4]
push 0
add eax, 0x1c
push eax
jmp 0x59461f
test ecx, ecx
je 0x5945c3
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5945c8
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea edi, [ecx + ebx*4]
je 0x5945de
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5945e3
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov esi, dword [eax + 0x28]
sub esi, dword [eax + 0x20]
add eax, 0x1c
test ecx, ecx
je 0x594602
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594607
call fcn.005d29f1
mov ecx, dword [edi]
mov edx, dword [esp + 0x7c]
sub edx, dword [ecx + 0x20]
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
sub edx, esi
push edx
push 0
add ecx, 0x1c
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [esp + 0x84], 0
jne 0x5947c6
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x270]
cmp dword [eax + 0x90], 0
mov ecx, dword [ebp + 4]
mov dword [esp + 0x84], 1
je 0x5946d8
test ecx, ecx
je 0x594668
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x59466d
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea esi, [ecx + ebx*4]
je 0x594683
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594688
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [esi]
mov edx, dword [ecx + ebx*4]
mov eax, dword [eax + 0x10]
cmp eax, dword [edx + 0x20]
jge 0x5946b8
test ecx, ecx
je 0x5946a8
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5946ad
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 0x10]
jmp 0x5946f6
test ecx, ecx
je 0x5946c8
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5946cd
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov edx, dword [eax + ebx*4]
mov ecx, dword [edx + 0x20]
jmp 0x5946f6
test ecx, ecx
je 0x5946e8
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5946ed
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 0x20]
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x270]
cmp dword [ecx + 0x90], 0
je 0x5947a0
test eax, eax
je 0x594724
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594729
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea esi, [ecx + ebx*4]
je 0x59473f
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594744
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [esi]
mov edx, dword [ecx + ebx*4]
mov eax, dword [eax + 0x18]
cmp eax, dword [edx + 0x28]
jle 0x59477a
test ecx, ecx
je 0x594764
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594769
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx*4]
mov eax, dword [edx + 0x18]
mov dword [edi + 0xc], eax
jmp 0x594ac4
test ecx, ecx
je 0x59478a
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x59478f
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx + 0x28]
mov dword [edi + 0xc], eax
jmp 0x594ac4
test eax, eax
je 0x5947b0
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x5947b5
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov eax, dword [edx + ebx*4]
mov eax, dword [eax + 0x28]
mov dword [edi + 0xc], eax
jmp 0x594ac4
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x270]
cmp dword [edx + 0x90], 0
mov ecx, dword [ebp + 4]
je 0x594860
test ecx, ecx
je 0x5947f0
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5947f5
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea esi, [ecx + ebx*4]
je 0x59480b
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594810
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov edx, dword [esi]
mov eax, dword [ecx + ebx*4]
mov edx, dword [edx + 0x10]
cmp edx, dword [eax + 0x20]
jge 0x594840
test ecx, ecx
je 0x594830
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594835
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx + 0x10]
jmp 0x59487e
test ecx, ecx
je 0x594850
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594855
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov edx, dword [eax + ebx*4]
mov edx, dword [edx + 0x20]
jmp 0x59487e
test ecx, ecx
je 0x594870
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594875
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x78]
mov ecx, dword [ecx + 4]
cmp ecx, edx
mov edi, dword [esp + 0x74]
jl 0x594942
mov edx, dword [edi + 0x270]
cmp dword [edx + 0x90], 0
je 0x594924
test eax, eax
je 0x5948b4
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x5948b9
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea esi, [ecx + ebx*4]
je 0x5948cf
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5948d4
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov edx, dword [esi]
mov eax, dword [ecx + ebx*4]
mov edx, dword [edx + 0x10]
cmp edx, dword [eax + 0x20]
jge 0x594904
test ecx, ecx
je 0x5948f4
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5948f9
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 0x10]
jmp 0x594942
test ecx, ecx
je 0x594914
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594919
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov edx, dword [eax + ebx*4]
mov ecx, dword [edx + 0x20]
jmp 0x594942
test eax, eax
je 0x594934
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594939
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 0x20]
mov edx, dword [esp + 0x78]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 0x270]
cmp dword [ecx + 0x90], 0
je 0x5949dc
test eax, eax
je 0x59496c
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594971
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea esi, [ecx + ebx*4]
je 0x594987
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x59498c
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [esi]
mov edx, dword [ecx + ebx*4]
mov eax, dword [eax + 0x18]
cmp eax, dword [edx + 0x28]
jle 0x5949bc
test ecx, ecx
je 0x5949ac
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5949b1
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 0x18]
jmp 0x5949fa
test ecx, ecx
je 0x5949cc
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5949d1
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov edx, dword [eax + ebx*4]
mov ecx, dword [edx + 0x28]
jmp 0x5949fa
test eax, eax
je 0x5949ec
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x5949f1
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 0x28]
mov edx, dword [esp + 0x78]
mov edx, dword [edx + 0xc]
cmp edx, ecx
jle 0x594a0c
mov eax, edx
jmp 0x594abd
mov ecx, dword [edi + 0x270]
cmp dword [ecx + 0x90], 0
je 0x594a9f
test eax, eax
je 0x594a2f
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594a34
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea esi, [ecx + ebx*4]
je 0x594a4a
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594a4f
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [esi]
mov edx, dword [ecx + ebx*4]
mov eax, dword [eax + 0x18]
cmp eax, dword [edx + 0x28]
jle 0x594a7f
test ecx, ecx
je 0x594a6f
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594a74
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx*4]
mov eax, dword [edx + 0x18]
jmp 0x594abd
test ecx, ecx
je 0x594a8f
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594a94
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx + 0x28]
jmp 0x594abd
test eax, eax
je 0x594aaf
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594ab4
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov eax, dword [edx + ebx*4]
mov eax, dword [eax + 0x28]
mov ecx, dword [esp + 0x78]
mov dword [ecx + 0xc], eax
mov edx, dword [esp + 0x74]
mov esi, dword [edx + 0x134]
mov eax, dword [esi + 0x58]
test eax, eax
mov edi, 2
je 0x594ae8
mov eax, dword [eax + 8]
test eax, eax
je 0x594ae8
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x594b03
mov edi, dword [eax + 0xb4]
mov eax, dword [eax + 8]
test eax, eax
je 0x594b03
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x594d5d
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x594b1e
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594b23
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x594d73
movzx esi, byte [ecx]
and esi, 1
xor ecx, ecx
test esi, esi
sete cl
test ecx, ecx
je 0x594d73
cmp dword [esp + 0x94], 0
jne 0x594c2d
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x270]
cmp dword [edx + 0x90], 0
mov dword [esp + 0x94], 1
je 0x594b92
test eax, eax
je 0x594b82
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594b87
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 0xc]
jmp 0x594bb0
test eax, eax
je 0x594ba2
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594ba7
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov edx, dword [eax + ebx*4]
mov ecx, dword [edx + 0x1c]
test eax, eax
mov edx, dword [esp + 0x78]
mov dword [edx], ecx
je 0x594bc6
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594bcb
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
test dword [ecx], 0x3442100
je 0x594c03
test eax, eax
je 0x594be9
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594bee
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx + 0x54]
mov ecx, dword [esp + 0x78]
mov dword [ecx + 8], eax
jmp 0x594d73
test eax, eax
je 0x594c13
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594c18
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov eax, dword [edx + ebx*4]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0x78]
mov dword [ecx + 8], eax
jmp 0x594d73
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 0x270]
cmp dword [ecx + 0x90], 0
je 0x594c60
test eax, eax
je 0x594c50
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594c55
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov eax, dword [edx + ebx*4]
mov ecx, dword [eax + 0xc]
jmp 0x594c7e
test eax, eax
je 0x594c70
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594c75
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx*4]
mov ecx, dword [edx + 0x1c]
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
cmp eax, ecx
jl 0x594cb5
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x270]
cmp dword [edx + 0x90], 0
mov edi, ebx
mov esi, ebp
je 0x594cab
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
jmp 0x594cb5
call fcn.0057a830
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ebp + 4]
test ecx, ecx
mov edx, dword [esp + 0x78]
mov dword [edx], eax
je 0x594cce
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x594cd3
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
test dword [ecx], 0x3442100
je 0x594d1f
test eax, eax
je 0x594cf1
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594cf6
call fcn.005d29f1
mov eax, dword [esp + 0x78]
mov ecx, dword [ebp + 4]
mov eax, dword [eax + 8]
mov edx, dword [ecx + ebx*4]
cmp eax, dword [edx + 0x54]
jg 0x594d54
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x54]
mov ecx, dword [esp + 0x78]
mov dword [ecx + 8], eax
jmp 0x594d73
test eax, eax
je 0x594d2f
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ebx, ecx
jb 0x594d34
call fcn.005d29f1
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 4]
mov ecx, dword [edx + ebx*4]
cmp eax, dword [ecx + 0x24]
jg 0x594d54
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x24]
mov ecx, dword [esp + 0x78]
mov dword [ecx + 8], eax
jmp 0x594d73
test ebx, ebx
jne 0x594d73
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x78]
mov ecx, dword [edx]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov eax, ebp
add ebx, 1
call fcn.0057a810
cmp ebx, eax
jl 0x5941c3
mov edi, dword [esp + 0x74]
mov esi, dword [edi + 0x134]
mov eax, dword [esi + 0x58]
test eax, eax
mov ebx, 2
je 0x594da9
mov eax, dword [eax + 8]
test eax, eax
je 0x594da9
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x58]
test eax, eax
je 0x594dc4
mov ebx, dword [eax + 0xb4]
mov eax, dword [eax + 8]
test eax, eax
je 0x594dc4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 1
jne 0x594fb0
cmp dword [edi + 0x2bc], 0
je 0x594fb0
mov eax, dword [edi + 0x2bc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
jle 0x594fb0
test eax, eax
jle 0x594fb0
xor esi, esi
mov eax, ebp
mov dword [esp + 0x7c], esi
call fcn.0057a810
test eax, eax
jle 0x594fb0
jmp 0x594e19
mov esi, dword [esp + 0x7c]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x594e2c
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x594e31
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + esi*4]
test dword [edx], 0x800
je 0x594f96
test ecx, ecx
je 0x594e55
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x7c], eax
jb 0x594e5a
call fcn.005d29f1
mov ecx, dword [esp + 0x7c]
mov eax, dword [ebp + 4]
mov eax, dword [eax + ecx*4]
mov esi, dword [eax + 0x28]
mov edx, dword [eax + 0x1c]
mov ebx, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
add eax, 0x1c
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x134]
mov eax, dword [ecx + 0x58]
mov dword [esp + 0x6c], esi
sub esi, ebx
test eax, eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], 5
je 0x594ecb
mov eax, dword [eax + 8]
test eax, eax
je 0x594ecb
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x594edf
mov edx, dword [eax + 0x3b8]
mov dword [esp + 0x80], edx
mov ecx, dword [ecx + 0x58]
test ecx, ecx
je 0x594ef4
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x594ef4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x3c]
push eax
add ecx, esi
push ecx
push eax
lea esi, [esp + 0x60]
call fcn.00579ee0
add esp, 0x10
test eax, eax
je 0x594f96
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x5c]
lea esi, [edi + 0xa]
sub edi, dword [esp + 0x50]
add eax, ebx
add eax, dword [esp + 0x54]
cdq
sub eax, edx
mov edx, dword [esp + 0x58]
mov ecx, eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x54]
lea edi, [edi + edx + 0xa]
add eax, ebx
add eax, dword [esp + 0x5c]
sar ecx, 1
cdq
sub eax, edx
mov edx, edi
sar eax, 1
sub edx, esi
je 0x594f96
mov edx, eax
sub edx, ecx
je 0x594f96
mov edx, dword [esp + 0x74]
mov dword [edx + 0x2dc], 1
mov dword [edx + 0x2b0], ecx
mov ecx, dword [esp + 0x78]
mov dword [edx + 0x2b8], eax
mov eax, dword [ecx + 8]
cmp eax, edi
mov dword [edx + 0x2ac], esi
mov dword [edx + 0x2b4], edi
jg 0x594f93
mov eax, edi
mov dword [ecx + 8], eax
mov esi, dword [esp + 0x7c]
add esi, 1
mov eax, ebp
mov dword [esp + 0x7c], esi
call fcn.0057a810
cmp esi, eax
jl 0x594e15
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x24