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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446f1d
mov eax, dword fs:[0]
push eax
sub esp, 0x120
push ebx
push esi
push edi
mov eax, dword [0x456c74]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x38], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, 1
add dword [edi + 0x14], ecx
cmp dword [edi + 0x164], ecx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
jne 0x40b246
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.00412b00
mov ecx, dword [eax + 4]
mov esi, dword [eax]
lea edx, [esp + 0xcc]
push edx
mov dword [esp + 0x34], ecx
call fcn.0040c340
mov dword [esp + 0x138], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x128], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
cmp esi, ebx
mov byte [esp + 0x138], 1
jle 0x40b063
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], esi
lea ebx, [ebx]
lea eax, [esp + 0x110]
lea esi, [esp + 0x5c]
call fcn.00415400
mov esi, dword [esp + 0xe0]
cmp esi, ebx
mov edx, dword [esp + 0xe4]
je 0x40afb9
mov ecx, dword [esp + 0xe8]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40afb9
mov eax, edx
add eax, 4
mov dword [edx], ebx
mov dword [esp + 0xe4], eax
jmp 0x40afec
cmp esi, edx
mov dword [esp + 0x34], edx
jbe 0x40afc6
call fcn.00432a22
mov ecx, dword [esp + 0x34]
push ecx
lea eax, [esp + 0xe0]
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xec]
call fcn.00416370
mov esi, dword [esp + 0x100]
cmp esi, ebx
mov edx, dword [esp + 0x104]
je 0x40b025
mov ecx, dword [esp + 0x108]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40b025
mov eax, edx
add eax, 4
mov dword [edx], ebx
mov dword [esp + 0x104], eax
jmp 0x40b058
cmp esi, edx
mov dword [esp + 0x34], edx
jbe 0x40b032
call fcn.00432a22
mov ecx, dword [esp + 0x34]
push ecx
lea eax, [esp + 0x100]
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0x10c]
call fcn.00416370
sub dword [esp + 0x4c], 1
jne 0x40af70
cmp dword [esp + 0x30], ebx
jle 0x40b185
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], ecx
lea esp, [esp]
mov esi, dword [esp + 0xd0]
cmp esi, ebx
mov edx, dword [esp + 0xd4]
je 0x40b0db
mov ecx, dword [esp + 0xd8]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 4
sar ecx, 4
cmp eax, ecx
jae 0x40b0db
mov ecx, dword [esp + 0xb8]
mov byte [esp + 0x34], bl
mov eax, dword [esp + 0x34]
push eax
push ecx
lea eax, [esp + 0x64]
push eax
push edx
mov ecx, 1
mov esi, edx
call fcn.0041a5f0
add esp, 0x10
add esi, 0x10
mov dword [esp + 0xd4], esi
jmp 0x40b10e
cmp esi, edx
mov dword [esp + 0x1c], edx
jbe 0x40b0e8
call fcn.00432a22
mov ecx, dword [esp + 0x1c]
push ecx
lea eax, [esp + 0xd0]
push eax
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xdc]
call fcn.00416220
mov esi, dword [esp + 0xf0]
cmp esi, ebx
mov edx, dword [esp + 0xf4]
je 0x40b147
mov ecx, dword [esp + 0xf8]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40b147
mov eax, edx
add eax, 4
mov dword [edx], ebx
mov dword [esp + 0xf4], eax
jmp 0x40b17a
cmp esi, edx
mov dword [esp + 0x1c], edx
jbe 0x40b154
call fcn.00432a22
mov ecx, dword [esp + 0x1c]
push ecx
lea eax, [esp + 0xf0]
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0xfc]
call fcn.00416370
sub dword [esp + 0x4c], 1
jne 0x40b080
mov ecx, dword [edi + 8]
cmp ecx, ebx
lea esi, [edi + 4]
jne 0x40b193
xor edx, edx
jmp 0x40b19b
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 6
cmp ecx, ebx
je 0x40b1e5
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 6
cmp edx, eax
jae 0x40b1e5
mov edx, dword [esp + 0xb8]
mov eax, dword [esi + 8]
mov byte [esp + 0x34], bl
mov ecx, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0xd4]
push ecx
push eax
mov ecx, 1
mov dword [esp + 0x2c], eax
call fcn.0041a690
mov edx, dword [esp + 0x2c]
add esp, 0x10
add edx, 0x40
mov dword [esi + 8], edx
jmp 0x40b212
mov eax, dword [esi + 8]
cmp ecx, eax
mov dword [esp + 0x34], eax
jbe 0x40b1f5
call fcn.00432a22
mov eax, dword [esp + 0x34]
push eax
push esi
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0xc4]
push edx
mov eax, esi
call fcn.00416430
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x40b223
push eax
call fcn.00423e04
add esp, 4
lea esi, [esp + 0xcc]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x138], 0xffffffff
call fcn.0040c3a0
mov ecx, dword [edi + 8]
cmp ecx, ebx
mov esi, dword [edi + 0x14]
mov dword [esp + 0xc4], esi
je 0x40b263
mov eax, dword [edi + 0xc]
sub eax, ecx
sar eax, 6
cmp esi, eax
jb 0x40b268
call fcn.00432a22
mov eax, dword [edi + 8]
mov ecx, esi
shl ecx, 6
add eax, ecx
push eax
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0xc0], ecx
call fcn.0040c420
mov dword [esp + 0x138], 2
mov ecx, dword [esp + 0x80]
cmp ecx, ebx
jne 0x40b2a0
mov dword [esp + 0x2c], ebx
jmp 0x40b2b0
mov eax, dword [esp + 0x84]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x90]
cmp ecx, ebx
jne 0x40b2c1
mov dword [esp + 0x30], ebx
jmp 0x40b2d1
mov eax, dword [esp + 0x94]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x30], eax
lea ebx, [edi + 0x3c]
push 5
push str.table
mov ecx, ebx
mov dword [esp + 0x3c], ebx
call fcn.00402bc0
push ebx
lea esi, [edi + 0x260]
call fcn.00415560
mov eax, dword [ebx]
push ebx
push eax
push edi
call fcn.00410730
push ecx
mov ecx, esp
mov dword [esp + 0xb8], esp
push eax
call fcn.00404470
mov ebx, edi
call fcn.00410b40
mov dword [esp + 0x1c], 0
call fcn.0042b1f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b335
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x144], 4
call fcn.00411f20
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b384
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc0]
push ecx
lea esi, [esp + 0x50]
call fcn.004121d0
push 1
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0xb8]
push eax
mov byte [esp + 0x144], 5
mov ebx, dword [esp + 0x40]
push edi
call fcn.00412f20
mov esi, edi
call fcn.0040fb50
cmp dword [edi + 0x164], 1
mov esi, dword [esp + 0x80]
je 0x40b682
test esi, esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], eax
jne 0x40b3f0
xor eax, eax
jmp 0x40b3fc
mov eax, dword [esp + 0x84]
sub eax, esi
sar eax, 2
mov edx, dword [edi + 0xa8]
lea eax, [edx + eax - 1]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
xor ebx, ebx
call fcn.004153a0
test eax, eax
jbe 0x40b45d
lea esp, [esp]
test esi, esi
je 0x40b434
mov eax, dword [esp + 0x84]
sub eax, esi
sar eax, 2
cmp ebx, eax
jb 0x40b440
call fcn.00432a22
mov esi, dword [esp + 0x80]
mov ecx, dword [esi + ebx*4]
add ecx, dword [edi + 0xa8]
lea eax, [esp + 0x7c]
add dword [esp + 0x14], ecx
add ebx, 1
call fcn.004153a0
cmp ebx, eax
jb 0x40b420
mov ebx, dword [esp + 0x90]
test ebx, ebx
jne 0x40b46c
xor eax, eax
jmp 0x40b478
mov eax, dword [esp + 0x94]
sub eax, ebx
sar eax, 2
mov edx, dword [edi + 0xa8]
add edx, eax
mov eax, dword [esp + 0x48]
lea ecx, [eax + edx - 1]
lea eax, [esp + 0x8c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x1c], 0
call fcn.004153a0
test eax, eax
jbe 0x40b4ef
mov esi, dword [esp + 0x1c]
test ebx, ebx
je 0x40b4bc
mov eax, dword [esp + 0x94]
sub eax, ebx
sar eax, 2
cmp esi, eax
jb 0x40b4c8
call fcn.00432a22
mov ebx, dword [esp + 0x90]
mov edx, dword [ebx + esi*4]
add edx, dword [edi + 0xa8]
lea eax, [esp + 0x8c]
add dword [esp + 0x48], edx
add esi, 1
call fcn.004153a0
cmp esi, eax
jb 0x40b4a8
mov esi, dword [esp + 0x80]
mov eax, 6
cmp dword [edi + 0x88], eax
je 0x40b504
mov eax, dword [edi + 0x8c]
add eax, eax
add dword [esp + 0x14], eax
add dword [esp + 0x48], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
jge 0x40b672
sub eax, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x18], edi
call fcn.004153a0
test eax, eax
mov ebx, dword [esp + 0xa0]
jbe 0x40b593
lea esi, [edi + 1]
lea ebx, [ebx]
test ebx, ebx
je 0x40b564
mov eax, dword [esp + 0xa4]
sub eax, ebx
sar eax, 2
cmp edi, eax
jb 0x40b570
call fcn.00432a22
mov ebx, dword [esp + 0xa0]
cmp dword [ebx + edi*4], 0
jne 0x40b57a
add dword [esp + 0x18], esi
lea eax, [esp + 0x9c]
add edi, esi
call fcn.004153a0
cmp edi, eax
jb 0x40b550
mov esi, dword [esp + 0x80]
xor edi, edi
test ebx, ebx
je 0x40b622
mov eax, dword [esp + 0xa4]
sub eax, ebx
sar eax, 2
cmp edi, eax
jae 0x40b622
cmp dword [esp + 0x18], 0
jle 0x40b622
cmp edi, eax
jb 0x40b5cb
call fcn.00432a22
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp + 0x80]
cmp dword [ebx + edi*4], 0
jne 0x40b61a
mov eax, dword [esp + 0x20]
cdq
idiv dword [esp + 0x18]
test esi, esi
mov ebx, eax
je 0x40b5f0
mov eax, dword [esp + 0x84]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x40b5fc
call fcn.00432a22
mov esi, dword [esp + 0x80]
add dword [esi + edi*4], ebx
sub dword [esp + 0x20], ebx
sub dword [esp + 0x18], 1
add dword [esp + 0x14], ebx
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp + 0x80]
add edi, 1
jmp 0x40b595
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x14], eax
jge 0x40b667
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x80]
sub eax, 1
je 0x40b652
sub eax, 1
jne 0x40b667
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
sub eax, dword [esp + 0x14]
mov edi, ecx
mov dword [esp + 0x3c], eax
jmp 0x40b66b
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x14]
mov edi, ecx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x3c], eax
jmp 0x40b66b
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x90]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
add ecx, eax
mov dword [esp + 0x44], ecx
jmp 0x40b689
mov ebx, dword [esp + 0x90]
cmp dword [edi + 0x164], 0
jne 0x40b7f7
mov eax, dword [edi + 0x78]
test eax, eax
jl 0x40b6c9
mov edx, dword [edi + 0x70]
mov ecx, dword [edi + 0x6c]
mov ebx, dword [edi + 0x15c]
push 0
push 5
push edx
mov edx, dword [edi + 0x60]
push ecx
push edx
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [esp + 0x58]
call fcn.00406c20
jmp 0x40b773
mov eax, dword [edi + 0x7c]
cmp dword [eax - 0xc], 0
je 0x40b781
push ecx
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
lea esi, [eax - 0x10]
mov eax, dword [edx + 0x10]
mov dword [esp + 0xb4], esp
mov dword [esp + 0x20], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b709
cmp eax, dword [esi]
jne 0x40b709
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b745
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x40b722
call fcn.00402d20
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00432142
add esp, 0x10
mov ecx, dword [esp + 0x20]
add ebx, 0x10
mov dword [ecx], ebx
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
sub edx, eax
push edx
mov edx, dword [esp + 0x4c]
sub edx, ecx
push edx
push eax
mov eax, dword [edi + 0x15c]
push ecx
push eax
push edi
call fcn.00414030
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x90]
mov ecx, dword [edi + 0x8c]
test ecx, ecx
jle 0x40b7f7
cmp dword [edi + 0x144], 0
je 0x40b7b7
mov eax, dword [edi + 0x88]
test eax, eax
mov edx, dword [edi + 0x15c]
je 0x40b7f7
push ecx
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [edi + 0x68]
push eax
mov eax, dword [edi + 0x64]
push eax
push ecx
mov esi, edx
jmp 0x40b7d6
mov edx, dword [edi + 0x88]
test edx, edx
mov eax, dword [edi + 0x148]
je 0x40b7f7
mov esi, dword [edi + 0x15c]
push ecx
push edx
mov edx, dword [esp + 0x50]
push eax
push eax
push edx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
call fcn.00407d10
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x68], edx
mov edx, 1
cmp dword [edi + 0x164], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
je 0x40b84d
cmp dword [edi + 0x88], 6
jne 0x40b835
add ecx, 3
lea eax, [edx + 2]
jmp 0x40b83d
mov eax, dword [edi + 0x8c]
add ecx, eax
add dword [esp + 0x60], eax
sub dword [esp + 0x64], eax
sub dword [esp + 0x68], eax
mov dword [esp + 0x5c], ecx
cmp dword [esp + 0x2c], 0
je 0x40bb10
cmp dword [esp + 0x30], 0
je 0x40bb10
xor esi, esi
mov dword [esp + 0x20], esi
call fcn.0042b1f8
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40b883
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x50], eax
mov byte [esp + 0x138], 6
call fcn.0042b1f8
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40b8b5
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x138], 7
call fcn.0042b1f8
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40b8e7
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x138], 8
cmp dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
jle 0x40ba85
lea ecx, [ecx]
push ecx
mov ecx, esp
mov dword [esp + 0xb4], esp
push 0x44dbfc
call fcn.00404470
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x24]
call fcn.004124b0
test eax, eax
je 0x40ba6c
mov esi, dword [esp + 0x20]
lea ebx, [esp + 0x20]
mov eax, edi
mov dword [esp + 0x20], esi
call fcn.00412dc0
mov ecx, dword [esp + 0x20]
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.00414b80
mov byte [esp + 0x138], 9
mov eax, dword [eax]
mov ebx, dword [esp + 0x18]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
je 0x40ba1b
cmp dword [ebx + 0xc], 0
jl 0x40ba0d
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x40ba0d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b9b0
cmp eax, dword [esi]
jne 0x40b9b0
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40b9eb
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40b71d
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00432142
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ba04
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x40ba1b
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402bc0
mov byte [esp + 0x138], 8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x70]
push edx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.0040c4a0
mov eax, dword [esp + 0x20]
add eax, 5
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
jl 0x40b910
mov edi, dword [esp + 0x38]
mov byte [esp + 0x138], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40baad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bad5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 5
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bafd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x90]
mov edx, 1
cmp dword [edi + 0x164], 0
je 0x40c227
cmp dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x14], edx
jl 0x40bea2
nop
cmp dword [esp + 0x30], 0
mov dword [esp + 0x50], 0
jle 0x40be81
mov dword [esp + 0x24], 0
jmp 0x40bb50
test ecx, ecx
je 0x40bb63
mov eax, dword [esp + 0x74]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x50], eax
jb 0x40bb73
call fcn.00432a22
mov esi, dword [esp + 0x80]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x24]
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
lea edi, [edx + ecx]
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
jle 0x40be67
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
lea ecx, [eax*4 - 4]
mov dword [esp + 0x58], ecx
jmp 0x40bbb7
mov edi, dword [esp + 0xb0]
mov eax, dword [edi + 4]
test eax, eax
je 0x40bbda
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40bbe6
call fcn.00432a22
mov esi, dword [esp + 0x80]
mov edi, dword [edi + 4]
add edi, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
cmp dword [edi], eax
mov dword [esp + 0x20], edi
jne 0x40be36
cmp eax, 1
jne 0x40bcd3
test esi, esi
je 0x40bc1c
mov ecx, dword [esp + 0x84]
mov eax, ecx
sub eax, esi
sar eax, 2
cmp ebx, eax
jb 0x40bc2f
call fcn.00432a22
mov esi, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov eax, dword [edi + 0x10]
mov edx, dword [esp + 0x28]
cmp dword [edx + esi], eax
jle 0x40bc6a
test esi, esi
je 0x40bc4a
mov eax, ecx
sub eax, esi
sar eax, 2
cmp ebx, eax
jb 0x40bc5d
call fcn.00432a22
mov esi, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x28]
mov edx, dword [eax + esi]
mov dword [esp + 0x20], edx
jmp 0x40bc6e
mov dword [esp + 0x20], eax
test esi, esi
je 0x40bc7b
sub ecx, esi
sar ecx, 2
cmp ebx, ecx
jb 0x40bc87
call fcn.00432a22
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [ecx + esi], eax
cmp dword [edi + 0x18], 0
je 0x40be2f
mov ecx, dword [esp + 0xa0]
test ecx, ecx
je 0x40bcb7
mov eax, dword [esp + 0xa4]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x40bcc3
call fcn.00432a22
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x28]
mov dword [edx + ecx], 1
jmp 0x40be2f
test eax, eax
mov dword [esp + 0x18], 0
jle 0x40bd7c
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xac]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
test esi, esi
je 0x40bd14
mov eax, dword [esp + 0x84]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x40bd27
call fcn.00432a22
mov esi, dword [esp + 0x80]
mov ecx, dword [esp + 0xa4]
mov edx, dword [ebx + esi]
mov eax, dword [esp + 0x20]
add dword [esp + 0x18], edx
cmp dword [eax + 0x18], 0
je 0x40bd6f
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x40bd4e
sub ecx, eax
sar ecx, 2
mov eax, ecx
cmp edi, eax
jb 0x40bd53
call fcn.00432a22
mov ecx, dword [esp + 0xa0]
mov dword [ebx + ecx], 1
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0x80]
add ebx, 4
add edi, 1
sub dword [esp + 0x1c], 1
jne 0x40bd00
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
cmp edx, dword [eax + 8]
jge 0x40be36
mov ecx, eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x14]
sub eax, edx
cdq
idiv ecx
test esi, esi
mov edi, eax
je 0x40bdbc
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0xac]
sub eax, esi
sar eax, 2
lea edx, [ecx + edx - 1]
cmp edx, eax
jb 0x40bdcc
call fcn.00432a22
mov esi, dword [esp + 0x80]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
sub eax, dword [esp + 0x18]
cdq
idiv ecx
mov eax, dword [esp + 0x58]
add dword [eax + esi], edx
xor esi, esi
test ecx, ecx
jle 0x40be2f
mov ebx, dword [esp + 0x28]
jmp 0x40bdf0
mov eax, dword [esp + 0x80]
test eax, eax
je 0x40be14
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0xac]
sub ecx, eax
sar ecx, 2
add edx, esi
cmp edx, ecx
jb 0x40be20
call fcn.00432a22
mov eax, dword [esp + 0x80]
add dword [ebx + eax], edi
add esi, 1
add ebx, 4
cmp esi, dword [esp + 0x14]
jl 0x40bdf0
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0xac]
add dword [esp + 0x54], 0x1c
mov eax, 4
add dword [esp + 0x28], eax
add dword [esp + 0x58], eax
add ebx, 1
cmp ebx, dword [esp + 0x2c]
mov dword [esp + 0xac], ebx
jl 0x40bbb0
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x50]
add dword [esp + 0x24], 0x10
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x50], eax
jl 0x40bb50
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
jle 0x40bb30
mov ebx, dword [esp + 0x90]
mov edx, 1
cmp dword [esp + 0x30], edx
mov dword [esp + 0x14], edx
jl 0x40c154
cmp dword [esp + 0x30], 0
mov dword [esp + 0x28], 0
jle 0x40c138
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], eax
lea ecx, [ecx]
test ecx, ecx
je 0x40bee3
mov eax, dword [esp + 0x74]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x28], eax
jb 0x40bef3
call fcn.00432a22
mov ebx, dword [esp + 0x90]
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x54]
add eax, ecx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0xb0], eax
mov dword [esp + 0x50], 0
jle 0x40c119
mov dword [esp + 0x58], 0
jmp 0x40bf20
mov esi, dword [esp + 0xb0]
mov eax, dword [esi + 4]
test eax, eax
je 0x40bf4c
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x50], eax
jb 0x40bf58
call fcn.00432a22
mov ebx, dword [esp + 0x90]
mov esi, dword [esi + 4]
add esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x14]
cmp dword [esi + 4], ecx
mov dword [esp + 0x24], esi
jne 0x40c0fb
cmp ecx, 1
jne 0x40c008
test ebx, ebx
mov edi, dword [esp + 0x28]
je 0x40bf93
mov ecx, dword [esp + 0x94]
mov eax, ecx
sub eax, ebx
sar eax, 2
cmp edi, eax
jb 0x40bfa6
call fcn.00432a22
mov ecx, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x14]
mov edx, dword [esp + 0x18]
cmp dword [edx + ebx], eax
jle 0x40bfe1
test ebx, ebx
je 0x40bfc5
mov eax, ecx
sub eax, ebx
sar eax, 2
cmp edi, eax
jb 0x40bfd8
call fcn.00432a22
mov ecx, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + ebx]
jmp 0x40bfe3
mov esi, eax
test ebx, ebx
je 0x40bff0
sub ecx, ebx
sar ecx, 2
cmp edi, ecx
jb 0x40bffc
call fcn.00432a22
mov ebx, dword [esp + 0x90]
mov ecx, dword [esp + 0x18]
mov dword [ecx + ebx], esi
jmp 0x40c0f4
mov ecx, dword [esp + 0x14]
xor edi, edi
xor esi, esi
test ecx, ecx
jle 0x40c05b
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
test ebx, ebx
je 0x40c036
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x28]
sub eax, ebx
sar eax, 2
add edx, esi
cmp edx, eax
jb 0x40c046
call fcn.00432a22
mov ebx, dword [esp + 0x90]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add edi, dword [eax + ebx]
add esi, 1
add eax, 4
cmp esi, ecx
mov dword [esp + 0x1c], eax
jl 0x40c01c
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x14]
cmp edi, eax
jge 0x40c0fb
sub eax, edi
cdq
idiv ecx
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x40c089
mov eax, dword [esp + 0x94]
sub eax, ebx
sar eax, 2
cmp dword [esp + 0x28], eax
jb 0x40c099
call fcn.00432a22
mov ebx, dword [esp + 0x90]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x14]
sub eax, edi
cdq
idiv ecx
mov eax, dword [esp + 0x18]
xor esi, esi
add dword [eax + ebx], edx
test ecx, ecx
jle 0x40c0f4
mov ebx, eax
mov eax, dword [esp + 0x90]
test eax, eax
je 0x40c0d5
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x28]
sub ecx, eax
sar ecx, 2
add edx, esi
cmp edx, ecx
jb 0x40c0e1
call fcn.00432a22
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x1c]
add dword [ebx + eax], ecx
add esi, 1
add ebx, 4
cmp esi, dword [esp + 0x14]
jl 0x40c0b4
mov ebx, dword [esp + 0x90]
mov eax, dword [esp + 0x50]
add dword [esp + 0x58], 0x1c
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
jl 0x40bf20
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x28]
add dword [esp + 0x54], 0x10
add dword [esp + 0x18], 4
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
jl 0x40bed0
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
jle 0x40beb0
mov esi, dword [esp + 0x80]
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + 0xa8]
mov eax, dword [esp + 0x2c]
lea edi, [ecx + eax - 1]
mov eax, dword [ebp + 8]
add dword [eax], edi
mov edi, dword [esp + 0x30]
lea ecx, [ecx + edi - 1]
add dword [eax + 4], ecx
xor edi, edi
cmp dword [esp + 0x2c], edi
jle 0x40c1c2
mov edi, edi
test esi, esi
je 0x40c194
mov ecx, dword [esp + 0x84]
sub ecx, esi
sar ecx, 2
cmp edi, ecx
jb 0x40c1a7
call fcn.00432a22
mov esi, dword [esp + 0x80]
mov edx, dword [esp + 0x38]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + edi*4]
add ecx, dword [edx + 0xa8]
add edi, 1
add dword [eax], ecx
cmp edi, dword [esp + 0x2c]
jl 0x40c180
mov ebx, dword [esp + 0x90]
xor esi, esi
cmp dword [esp + 0x30], esi
jle 0x40c20c
lea ebx, [ebx]
test ebx, ebx
je 0x40c1e4
mov ecx, dword [esp + 0x94]
sub ecx, ebx
sar ecx, 2
cmp esi, ecx
jb 0x40c1f7
call fcn.00432a22
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0x38]
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + esi*4]
add ecx, dword [edx + 0xa8]
add esi, 1
add dword [eax + 4], ecx
cmp esi, dword [esp + 0x30]
jl 0x40c1d0
cmp dword [edx + 0x88], 6
mov ecx, dword [edx + 0x8c]
jne 0x40c21e
lea ecx, [ecx + ecx*2]
add ecx, ecx
add dword [eax], ecx
add dword [eax + 4], ecx
jmp 0x40c243
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x38]
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov eax, dword [edx + 8]
test eax, eax
je 0x40c25b
mov edx, dword [edx + 0xc]
sub edx, eax
sar edx, 6
cmp dword [esp + 0xc4], edx
jb 0x40c260
call fcn.00432a22
mov edi, dword [esp + 0x38]
mov esi, dword [edi + 8]
add esi, dword [esp + 0xb8]
lea edx, [esp + 0x6c]
push edx
mov eax, esi
call fcn.00415010
lea eax, [esp + 0x7c]
push eax
lea eax, [esi + 0x10]
call fcn.00415230
lea ecx, [esp + 0x8c]
push ecx
lea eax, [esi + 0x20]
call fcn.00415230
lea edx, [esp + 0x9c]
push edx
lea eax, [esi + 0x30]
call fcn.00415230
mov ecx, dword [esp + 0x34]
push 5
push str.table
call fcn.00402bc0
push 1
call fcn.0040f920
test eax, eax
je 0x40c2c9
mov esi, edi
call fcn.0040fb50
mov byte [esp + 0x138], 4
mov eax, dword [esp + 0xc0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c2f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 2
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c31c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x6c]
call fcn.0040c3a0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc