Function at 0x401cf0
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x452f03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [esp + 0x138]
push ebx
push ebp
xor ebx, ebx
mov ebp, ecx
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x70], ebp
jne 0x401d29
xor al, al
jmp 0x402f40
mov esi, dword [eax + 0x24]
mov ecx, dword [eax + 0x30]
mov edi, dword [eax + 0x34]
cmp esi, ebx
mov byte [esp + 0x1a], 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], edi
jg 0x401d74
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x30]
push 4
push eax
mov edx, dword [ecx]
mov dword [esp + 0x38], 7
call dword [edx + 0x24]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x30]
push 4
push eax
mov edx, dword [ecx]
mov dword [esp + 0x38], ebx
call dword [edx + 0x24]
mov al, 1
jmp 0x402f40
lea ecx, [esp + 0x13]
mov dword [esp + 0x13c], ebx
push ecx
lea ecx, [esp + 0x24]
call fcn.00409960
cmp esi, ebx
mov byte [esp + 0x13c], 2
jle 0x4020a0
xor ebx, ebx
mov dword [esp + 0x1c], esi
lea edx, [esp + 0x1b]
lea ecx, [esp + 0xd4]
push edx
mov byte [esp + 0x140], 3
call fcn.00409960
mov eax, dword [esp + 0x148]
xor edi, edi
mov byte [esp + 0x13c], 4
mov edx, dword [eax + 0x20]
fld dword [ebx + edx + 8]
fstp dword [esp + 0x98]
fld dword [ebx + edx + 0xc]
fstp dword [esp + 0x9c]
fld dword [ebx + edx + 0x10]
fstp dword [esp + 0xa0]
fld dword [ebx + edx + 0x14]
fstp dword [esp + 0xa4]
fld dword [ebx + edx + 0x18]
fstp dword [esp + 0xa8]
fld dword [ebx + edx + 0x1c]
fstp dword [esp + 0xac]
cmp word [ebx + edx + 4], di
mov eax, dword [ebx + edx]
jbe 0x401edb
mov ecx, dword [esp + 0xd8]
mov esi, dword [esp + 0xd4]
add eax, 0xc
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
fld dword [eax]
mov ebp, dword [eax + 4]
fst dword [esp + 0x5c]
fcomp dword [esp + 0x158]
mov dword [esp + 0x58], ebp
fnstsw ax
test ah, 1
je 0x401e62
xor eax, eax
mov ax, word [ebx + edx + 4]
lea edx, [edi + 1]
cmp edx, eax
jl 0x401eb4
cmp esi, ecx
jne 0x401eb4
cmp ecx, dword [esp + 0xdc]
je 0x401e92
test ecx, ecx
je 0x401e86
mov dword [ecx], ebp
mov eax, dword [esp + 0x5c]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0xd8]
mov esi, dword [esp + 0xd4]
add ecx, 8
mov dword [esp + 0xd8], ecx
jmp 0x401eb4
lea edx, [esp + 0x58]
push 1
push edx
push ecx
lea ecx, [esp + 0xe0]
call fcn.0040a970
mov ecx, dword [esp + 0xd8]
mov esi, dword [esp + 0xd4]
mov eax, dword [esp + 0x34]
inc edi
add eax, 0x14
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x148]
mov edx, dword [eax + 0x20]
xor eax, eax
mov ax, word [ebx + edx + 4]
cmp edi, eax
jl 0x401e31
jmp 0x401ee9
mov ecx, dword [esp + 0xd8]
mov esi, dword [esp + 0xd4]
fld qword [0x458158]
cmp esi, ecx
mov eax, esi
je 0x401eff
fadd dword [eax + 4]
add eax, 8
cmp eax, ecx
jne 0x401ef5
fsubr qword [0x458138]
cmp esi, ecx
je 0x401f55
lea eax, [esi + 4]
xor edx, edx
jmp 0x401f17
mov esi, dword [esp + 0xd4]
sub ecx, esi
mov dword [esp + 0x94], edx
sar ecx, 3
mov dword [esp + 0x90], ecx
add eax, 8
fild qword [esp + 0x90]
lea esi, [eax - 4]
fdivr st(1)
fadd dword [eax - 8]
fstp dword [eax - 8]
mov ecx, dword [esp + 0xd8]
cmp esi, ecx
jne 0x401f10
mov esi, dword [esp + 0xd4]
fstp st(0)
jmp 0x401f57
fstp st(0)
mov ebp, dword [esp + 0x14c]
cmp ebp, 0x63
jae 0x401fc8
mov edx, ecx
sub edx, esi
sar edx, 3
cmp edx, ebp
jbe 0x401fc8
cmp esi, ecx
mov edi, esi
mov edx, esi
je 0x401f8c
fld dword [edx + 4]
fcomp dword [edi + 4]
fnstsw ax
test ah, 1
je 0x401f85
mov edi, edx
add edx, 8
cmp edx, ecx
jne 0x401f76
lea eax, [edi + 8]
cmp eax, ecx
je 0x401fb3
mov edx, dword [esp + 0x3c]
push 0
push edx
push edi
push ecx
push eax
call fcn.0040e660
mov ecx, dword [esp + 0xec]
mov esi, dword [esp + 0xe8]
add esp, 0x14
sub ecx, 8
mov eax, ecx
mov dword [esp + 0xd8], ecx
sub eax, esi
sar eax, 3
cmp eax, ebp
ja 0x401f6e
fld qword [0x458158]
cmp esi, ecx
mov eax, esi
je 0x401fde
fadd dword [eax + 4]
add eax, 8
cmp eax, ecx
jne 0x401fd4
fsub qword [0x458138]
cmp esi, ecx
je 0x40205e
lea eax, [esi + 4]
jmp 0x401ff4
mov esi, dword [esp + 0xd4]
sub ecx, esi
mov dword [esp + 0x78], 0
sar ecx, 3
mov dword [esp + 0x74], ecx
add eax, 8
fild qword [esp + 0x74]
lea edx, [eax - 4]
fdivr st(1)
fadd dword [eax - 8]
fstp dword [eax - 8]
mov ecx, dword [esp + 0xd8]
cmp edx, ecx
jne 0x401fed
fstp st(0)
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp ecx, eax
je 0x402062
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x6c], ecx
test ecx, ecx
mov byte [esp + 0x13c], 5
je 0x402055
lea eax, [esp + 0x98]
push eax
call fcn.004030b0
mov ecx, dword [esp + 0x24]
add ecx, 0x70
mov dword [esp + 0x24], ecx
jmp 0x402076
fstp st(0)
jmp 0x402024
lea edx, [esp + 0x98]
push 1
push edx
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040adc0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x13c], 2
call fcn.00409190
mov eax, dword [esp + 0x1c]
add ebx, 0x20
dec eax
mov dword [esp + 0x1c], eax
jne 0x401d9f
mov edi, dword [esp + 0x14]
lea eax, [edi + edi*2]
shl eax, 1
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x40], eax
test edi, edi
jle 0x40212f
mov edx, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x38]
mov esi, edx
add edx, 0xc
mov edi, 3
mov ax, word [esi]
add esi, 2
mov word [ecx], ax
mov ebp, dword [esp + 0x20]
and eax, 0xffff
add ecx, 2
add edx, 8
lea ebx, [eax*8]
sub ebx, eax
mov eax, dword [edx - 0xc]
shl ebx, 4
mov dword [ebx + ebp + 0x18], eax
xor eax, eax
mov ax, word [ecx - 2]
mov ebp, dword [esp + 0x20]
lea ebx, [eax*8]
sub ebx, eax
mov eax, dword [edx - 8]
shl ebx, 4
dec edi
mov dword [ebx + ebp + 0x1c], eax
jne 0x4020ce
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
add edx, 0x68
dec eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], eax
jne 0x4020c4
cmp dword [esp + 0x150], 0x63
jae 0x40265d
mov ecx, dword [esp + 0x70]
mov al, byte [ecx + 8]
test al, al
je 0x40265d
lea edx, [esp + 0x1b]
lea eax, [esp + 0x13]
push edx
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x144], 6
call fcn.004094b0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x13c], 7
test esi, esi
mov dword [esp + 0x34], 0
jle 0x402632
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x44]
call fcn.00409590
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x54], 3
xor eax, eax
xor esi, esi
mov ax, word [ebx]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x20]
shl edx, 4
mov ecx, dword [edx + eax + 0x40]
mov edi, dword [edx + eax + 0x3c]
lea eax, [edx + eax + 0x3c]
sub ecx, edi
test ecx, 0xfffffff8
jle 0x4023d6
mov eax, dword [eax]
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x44]
lea edx, [eax + esi*8]
lea eax, [esp + 0x108]
push edx
push eax
call fcn.0040b360
cmp dword [esp + 0x108], edi
jne 0x402288
xor eax, eax
mov edx, dword [esp + 0x20]
mov ax, word [ebx]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [esp + 0x38]
shl ecx, 4
mov ebp, dword [ecx + edx + 0x3c]
lea ecx, [esp + 0x44]
lea edi, [ebp + esi*8]
push edi
push eax
call fcn.00428b70
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
je 0x40223a
mov ecx, dword [edi]
mov edx, dword [eax + 0x10]
cmp ecx, edx
jae 0x40227c
lea edx, [esp + 0x10c]
lea ecx, [esp + 0x11c]
push edx
push edi
mov dword [esp + 0x114], 0
call fcn.0041bc70
push eax
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
push eax
call fcn.00409650
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x50]
call fcn.00409480
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov edx, dword [ebp + esi*8 + 4]
mov dword [eax + 0x14], edx
jmp 0x4023a7
xor eax, eax
mov edx, dword [esp + 0x20]
mov ax, word [ebx]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [esp + 0x7c]
shl ecx, 4
mov ebp, dword [ecx + edx + 0x3c]
lea ecx, [esp + 0x44]
lea edi, [ebp + esi*8]
push edi
push eax
call fcn.00428b70
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
je 0x4022c9
mov ecx, dword [edi]
mov edx, dword [eax + 0x10]
cmp ecx, edx
jae 0x402311
lea edx, [esp + 0x110]
lea ecx, [esp + 0x12c]
push edx
push edi
mov dword [esp + 0x118], 0
call fcn.0041bc70
push eax
push ecx
lea eax, [esp + 0x84]
mov ecx, esp
push eax
call fcn.00409650
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x50]
call fcn.00409480
mov eax, dword [eax]
mov dword [esp + 0x7c], eax
fld dword [ebp + esi*8 + 4]
fcomp dword [eax + 0x14]
fnstsw ax
test ah, 0x41
jne 0x4023a7
xor eax, eax
lea ecx, [esp + 0x2c]
mov ax, word [ebx]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x20]
shl edx, 4
mov ebp, dword [edx + eax + 0x3c]
lea edi, [ebp + esi*8]
push edi
push ecx
lea ecx, [esp + 0x4c]
call fcn.00428b70
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
je 0x402364
mov edx, dword [edi]
mov ecx, dword [eax + 0x10]
cmp edx, ecx
jae 0x4023a0
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x124]
push eax
push edi
mov dword [esp + 0x74], 0
call fcn.0041bc70
push eax
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
push edx
call fcn.00409650
lea eax, [esp + 0x60]
lea ecx, [esp + 0x4c]
push eax
call fcn.00409480
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov ecx, dword [ebp + esi*8 + 4]
mov dword [eax + 0x14], ecx
xor eax, eax
inc esi
mov ax, word [ebx]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x20]
shl edx, 4
mov ecx, dword [edx + eax + 0x40]
mov ebp, dword [edx + eax + 0x3c]
lea eax, [edx + eax + 0x3c]
sub ecx, ebp
sar ecx, 3
cmp esi, ecx
jl 0x4021d1
mov eax, dword [esp + 0x54]
add ebx, 2
dec eax
mov dword [esp + 0x54], eax
jne 0x4021a0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x150]
cmp edx, eax
jbe 0x402605
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 8]
mov ecx, eax
cmp eax, edx
mov dword [esp + 0x50], ecx
mov ebp, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x8c], esi
je 0x402458
fld dword [esp + 0x8c]
fcomp dword [ecx + 0x14]
fnstsw ax
test ah, 0x41
jne 0x40243f
mov ebp, dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x8c], eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0040d2c0
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
add esp, 4
cmp ecx, eax
jne 0x40241d
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x30], 3
xor eax, eax
mov ax, word [edi]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x20]
shl edx, 4
mov ecx, dword [edx + eax + 0x3c]
lea eax, [edx + eax + 0x3c]
cmp ecx, dword [eax + 4]
jne 0x4024ed
push str.CD3DModelPieceLOD::Create___Couldnt_set_bones_per_tri_to_g_CV_D3DPipeForceMaxBonesPerTri
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esp + 0x70]
mov edx, dword [esp + 0x40]
push edx
mov byte [esi + 8], 0
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x164]
mov ecx, dword [esp + 0x160]
mov edx, dword [esp + 0x15c]
add esp, 4
push eax
mov eax, dword [esp + 0x158]
push ecx
mov ecx, dword [esp + 0x158]
push edx
mov edx, dword [esp + 0x158]
push eax
mov eax, dword [esp + 0x158]
push ecx
mov ecx, dword [esp + 0x158]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00401cf0
xor eax, eax
mov ax, word [edi]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x20]
shl edx, 4
mov ecx, dword [edx + eax + 0x40]
lea esi, [edx + eax]
mov eax, dword [edx + eax + 0x3c]
cmp eax, ecx
je 0x4025f3
cmp dword [eax], ebp
je 0x402525
add eax, 8
cmp eax, ecx
jne 0x402515
jmp 0x4025f3
mov ecx, dword [eax + 4]
lea edx, [eax + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x40]
cmp edx, ecx
je 0x40254c
mov ebp, dword [esp + 0x58]
push 0
push ebp
push eax
push ecx
push edx
call fcn.0040e660
mov ebp, dword [esp + 0x68]
add esp, 0x14
mov eax, dword [esi + 0x40]
add eax, 0xfffffff8
mov dword [esi + 0x40], eax
xor eax, eax
mov ax, word [edi]
mov edx, dword [esp + 0x20]
fld qword [0x458158]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 4
mov esi, dword [ecx + edx + 0x40]
lea eax, [ecx + edx]
mov ecx, dword [ecx + edx + 0x3c]
cmp ecx, esi
je 0x4025d2
mov edx, dword [eax + 0x40]
mov esi, dword [eax + 0x3c]
sub edx, esi
mov dword [esp + 0x118], 0
sar edx, 3
mov dword [esp + 0x114], edx
xor eax, eax
fild qword [esp + 0x114]
add ecx, 8
fdivr dword [esp + 0x3c]
fadd dword [ecx - 4]
fst dword [ecx - 4]
mov ax, word [edi]
mov edx, dword [esp + 0x20]
faddp st(1)
lea esi, [eax*8]
sub esi, eax
shl esi, 4
lea eax, [esi + edx]
mov esi, dword [esi + edx + 0x40]
cmp ecx, esi
jne 0x40257f
xor eax, eax
mov ax, word [edi]
fsubr dword [0x458124]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 4
mov edx, dword [ecx + edx + 0x3c]
fadd dword [edx + 4]
fstp dword [edx + 4]
mov eax, dword [esp + 0x30]
add edi, 2
dec eax
mov dword [esp + 0x30], eax
jne 0x402464
mov edx, dword [esp + 0x150]
mov eax, dword [esp + 0x48]
inc edx
cmp eax, edx
ja 0x40218b
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
inc eax
mov dword [esp + 0x1c], ebx
cmp eax, esi
mov dword [esp + 0x34], eax
jl 0x40218b
lea ecx, [esp + 0x44]
mov byte [esp + 0x13c], 8
call fcn.00409590
mov eax, dword [esp + 0x44]
push 1
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x144], 9
call fcn.0040a7c0
jmp 0x402661
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
xor edi, edi
sar edx, 6
mov ecx, edx
mov dword [esp + 0x80], edi
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x148]
mov dword [esp + 0x88], edi
mov eax, dword [edx + 0x30]
cmp esi, edi
mov byte [esp + 0x13c], 0xa
jle 0x4029f9
mov ebp, dword [esp + 0x40]
add eax, 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], esi
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x30], 3
xor eax, eax
mov edx, dword [esp + 0x20]
mov ax, word [ebp]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 4
fld dword [ecx + edx + 0x18]
fcomp dword [ebx - 4]
lea esi, [ecx + edx]
fnstsw ax
test ah, 0x40
je 0x402705
fld dword [esi + 0x1c]
fcomp dword [ebx]
fnstsw ax
test ah, 0x40
jne 0x4029ca
mov eax, dword [esi]
lea edi, [esi + 0x3c]
mov dword [esp + 0x98], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x9c], ecx
mov edx, dword [esi + 8]
mov dword [esp + 0xa0], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0xa4], eax
mov ecx, dword [esi + 0x10]
mov dword [esp + 0xa8], ecx
mov edx, dword [esi + 0x14]
mov dword [esp + 0xac], edx
mov eax, dword [esi + 0x18]
mov dword [esp + 0xb0], eax
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0xb4], ecx
mov edx, dword [esi + 0x20]
mov dword [esp + 0xb8], edx
mov eax, dword [esi + 0x24]
mov dword [esp + 0xbc], eax
mov ecx, dword [esi + 0x28]
mov dword [esp + 0xc0], ecx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0xc4], edx
mov eax, dword [esi + 0x30]
mov dword [esp + 0xc8], eax
mov ecx, dword [esi + 0x34]
mov dword [esp + 0xcc], ecx
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0x1b]
lea eax, [esp + 0xd4]
push ecx
mov ecx, edi
mov dword [esp + 0xd4], edx
mov dword [esp + 0x5c], eax
call fcn.0041f5d0
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
lea ecx, [esp + 0xd8]
sub edx, eax
mov byte [esp + 0x140], 0xb
sar edx, 3
push edx
call fcn.00408f70
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0xd4]
mov eax, dword [edi + 4]
mov edi, dword [edi]
push ecx
push edx
push eax
push edi
mov byte [esp + 0x14c], 0xd
call fcn.0040ed30
mov dword [esp + 0xe8], eax
mov eax, dword [esi + 0x48]
lea ecx, [esi + 0x4c]
mov dword [esp + 0xf0], eax
add esp, 0x10
mov edx, dword [ecx]
mov dword [esp + 0xe4], edx
lea edx, [esi + 0x58]
mov eax, dword [ecx + 4]
add esi, 0x64
mov dword [esp + 0xe8], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0xec], ecx
mov eax, dword [edx]
mov dword [esp + 0xf0], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0xf4], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0xf8], edx
mov eax, dword [esi]
mov dword [esp + 0xfc], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x100], ecx
mov edx, dword [esi + 8]
mov dword [esp + 0x104], edx
mov ax, word [ebp]
mov esi, dword [esp + 0x24]
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x20]
mov ecx, esi
mov byte [esp + 0x13c], 0xe
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
mov eax, dword [esp + 0x84]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esp + 0x88]
cmp eax, ecx
mov word [esp + 0x1e], dx
je 0x4028d1
test eax, eax
je 0x4028c5
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x84]
add eax, 4
mov dword [esp + 0x84], eax
jmp 0x4028e9
lea ecx, [esp + 0x1c]
push 1
push ecx
push eax
lea ecx, [esp + 0x8c]
call fcn.0040b3c0
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov eax, 0x92492493
sub esi, ecx
imul esi
add edx, esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov word [ebp], dx
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x28]
je 0x402941
mov dword [esp + 0x58], ecx
mov dword [esp + 0x90], ecx
test ecx, ecx
mov byte [esp + 0x13c], 0xf
je 0x402938
lea edx, [esp + 0x98]
push edx
call fcn.004030b0
mov ecx, dword [esp + 0x24]
add ecx, 0x70
mov dword [esp + 0x24], ecx
jmp 0x402955
lea eax, [esp + 0x98]
push 1
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040adc0
xor eax, eax
mov edx, dword [ebx - 4]
mov ax, word [ebp]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + 0x20]
shl ecx, 4
mov dword [ecx + eax + 0x18], edx
xor eax, eax
mov ax, word [ebp]
mov edx, dword [ebx]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + 0x20]
shl ecx, 4
mov dword [ecx + eax + 0x1c], edx
lea ecx, [esp + 0xd4]
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd4]
sub eax, ecx
mov byte [esp + 0x13c], 0x10
sar eax, 3
push eax
push ecx
lea ecx, [esp + 0xe4]
call fcn.0041ce40
mov byte [esp + 0x13c], 0xa
mov eax, dword [esp + 0x30]
add ebp, 2
add ebx, 8
dec eax
mov dword [esp + 0x30], eax
jne 0x4026ce
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x50]
add ecx, 0x68
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x50], eax
jne 0x4026c2
xor ebx, ebx
mov dword [esp + 0x2c], ebx
lea edx, [esp + 0x1b]
lea ecx, [esp + 0x60]
push edx
mov byte [esp + 0x140], 0x11
call fcn.0040a340
mov al, byte [esp + 0x1b]
lea ecx, [esp + 0x60]
mov byte [esp + 0x13c], 0x12
mov dword [esp + 0x64], ebx
mov byte [esp + 0x68], al
call fcn.0042b130
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
mov byte [esp + 0x13c], 0x13
sar edx, 6
mov ecx, edx
mov dword [esp + 0x34], ebx
shr ecx, 0x1f
add edx, ecx
test edx, edx
jle 0x402b80
mov edx, dword [ebx + esi + 0x40]
mov edi, dword [ebx + esi + 0x3c]
mov eax, dword [esp + 0x2c]
sub edx, edi
sar edx, 3
cmp edx, eax
jbe 0x402a87
mov eax, dword [ebx + esi + 0x40]
mov edx, edi
sub eax, edx
sar eax, 3
mov dword [esp + 0x2c], eax
mov ebp, dword [ebx + esi + 0x3c]
mov eax, dword [ebx + esi + 0x40]
cmp ebp, eax
je 0x402b53
mov edx, dword [esp + 0x60]
mov al, 1
mov edi, edx
mov esi, dword [edx + 4]
test esi, esi
je 0x402ac3
mov ecx, dword [ebp]
mov eax, dword [esi + 0x10]
mov edi, esi
cmp ecx, eax
setb al
test al, al
je 0x402abc
mov esi, dword [esi + 8]
jmp 0x402abf
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x402aa9
test al, al
mov dword [esp + 0x1c], edi
je 0x402afb
cmp edi, dword [edx + 8]
jne 0x402aee
push ebp
push edi
lea eax, [esp + 0x60]
push esi
push eax
lea ecx, [esp + 0x70]
call fcn.0040d850
mov ecx, dword [eax]
mov byte [esp + 0x78], 1
mov dword [esp + 0x74], ecx
jmp 0x402b42
lea edx, [esp + 0x1c]
push edx
call fcn.0040e6a0
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp]
cmp ecx, eax
jae 0x402b2a
lea edx, [esp + 0x13]
lea eax, [esp + 0x90]
push edx
push ebp
push edi
push esi
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x27], 1
call fcn.0040d850
push eax
jmp 0x402b39
lea ecx, [esp + 0x13]
lea edx, [esp + 0x1c]
push ecx
mov byte [esp + 0x17], 0
push edx
lea ecx, [esp + 0x7c]
call fcn.0042bc60
mov esi, dword [esp + 0x20]
add ebp, 8
cmp ebp, dword [ebx + esi + 0x40]
jne 0x402a97
mov ecx, dword [esp + 0x24]
mov eax, 0x92492493
sub ecx, esi
mov edi, dword [esp + 0x34]
imul ecx
add edx, ecx
inc edi
sar edx, 6
mov eax, edx
add ebx, 0x70
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x34], edi
cmp edi, edx
jl 0x402a63
mov ebx, dword [esp + 0x160]
mov eax, 0x100
test dword [ebx], eax
jne 0x402b9a
test dword [ebx + 4], eax
jne 0x402b9a
test dword [ebx + 0xc], eax
je 0x402bb6
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x70]
push ecx
lea edx, [esp + 0x24]
push ebp
push edx
mov ecx, esi
call fcn.00407c80
jmp 0x402bbe
mov esi, dword [esp + 0x70]
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x144]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x402bd3
mov edi, 6
jmp 0x402be4
mov edx, dword [esp + 0x64]
xor ecx, ecx
cmp edx, 1
setne cl
add ecx, 4
mov edi, ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x3c]
push 4
push eax
mov edx, dword [ecx]
mov dword [esp + 0x44], edi
call dword [edx + 0x24]
sub edi, 4
je 0x402c84
dec edi
je 0x402c38
dec edi
jne 0x402ca0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
push ebx
push ecx
push ebp
lea eax, [esp + 0x8c]
push edx
mov edx, dword [esp + 0x154]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00406f80
test al, al
jne 0x402ca0
jmp 0x402c9b
mov al, byte [esp + 0x154]
test al, al
je 0x402c6b
cmp dword [esp + 0x2c], 1
jbe 0x402c6b
mov eax, dword [esp + 0x15c]
mov ecx, dword [esp + 0x14]
push ebx
push eax
push ecx
lea edx, [esp + 0x2c]
push ebp
push edx
mov ecx, esi
call fcn.00405700
test al, al
jne 0x402ca0
jmp 0x402c9b
mov eax, dword [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x28]
push ebp
push ecx
mov ecx, esi
call fcn.00403850
test al, al
jne 0x402ca0
jmp 0x402c9b
mov edx, dword [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x28]
push ebp
push eax
mov ecx, esi
call fcn.00403250
test al, al
jne 0x402ca0
mov byte [esp + 0x1a], 0
test ebp, ebp
je 0x402cad
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x64]
mov byte [esp + 0x13c], 0x14
test eax, eax
je 0x402d05
mov eax, dword [esp + 0x60]
mov esi, dword [eax + 4]
test esi, esi
je 0x402cee
mov ecx, dword [esi + 0xc]
push ecx
lea ecx, [esp + 0x64]
call fcn.0040ac00
mov edi, dword [esi + 8]
push 1
push esi
lea ecx, [esp + 0x68]
call fcn.0040a7a0
test edi, edi
mov esi, edi
jne 0x402cc8
mov eax, dword [esp + 0x60]
mov dword [eax + 8], eax
mov edx, dword [esp + 0x60]
xor ecx, ecx
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x60]
mov dword [eax + 0xc], eax
mov dword [esp + 0x64], ecx
mov esi, dword [esp + 0x60]
mov byte [esp + 0x13c], 0x15
test esi, esi
je 0x402d39
push 0x4651b0
call fcn.0040a7e0
add esp, 4
mov eax, dword [0x463af0]
mov dword [esi], eax
mov dword [0x463af0], esi
mov dword [0x4651b0], 0
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x80]
sub eax, ecx
mov byte [esp + 0x13c], 0x16
sar eax, 2
test ecx, ecx
mov edi, ecx
je 0x402d97
shl eax, 2
cmp eax, 0x80
jbe 0x402d6f
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x402d97
dec eax
push 0x4651b0
shr eax, 3
lea esi, [eax*4 + 0x463ae8]
call fcn.0040a7e0
add esp, 4
mov ecx, dword [esi]
mov dword [edi], ecx
mov dword [esi], edi
mov dword [0x4651b0], 0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ebx, 0x17
cmp esi, edi
mov dword [esp + 0x13c], ebx
je 0x402de9
add esi, 0x3c
mov dword [esp + 0x58], esi
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edx
push eax
mov byte [esp + 0x144], 0x18
call fcn.00408f20
add esp, 8
mov ecx, esi
mov byte [esp + 0x13c], bl
call fcn.00409190
add esi, 0x70
lea ecx, [esi - 0x3c]
cmp ecx, edi
jne 0x402db2
mov esi, dword [esp + 0x20]
test esi, esi
mov dword [esp + 0x13c], 0x19
mov dword [esp + 0x3c], esi
je 0x402f3c
mov ecx, dword [esp + 0x28]
mov eax, 0x92492493
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx*8]
sub eax, edx
shl eax, 4
cmp eax, 0x80
jbe 0x402e3a
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x402f3c
dec eax
push 1
shr eax, 3
push 0x4651b0
lea ebp, [eax*4 + 0x463ae8]
call fcn.00408460
add esp, 8
test eax, eax
je 0x402f26
mov edi, dword [0x4604e8]
mov eax, dword [0x463ae4]
mov dword [esp + 0x14], 0x11
xor esi, esi
test edi, edi
jbe 0x402edc
mov ebx, eax
shr ebx, 1
cmp esi, ebx
jb 0x402e9b
mov eax, dword [0x4651b0]
test eax, eax
jne 0x402e9b
push 1
push 0x4651b0
call fcn.00408460
add esp, 8
test eax, eax
je 0x402f16
jmp 0x402ed7
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
imul ecx, edx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
imul eax, ecx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
imul edx, eax
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
imul ecx, edx
mov dword [esp + 0x14], ecx
inc esi
cmp esi, edi
jb 0x402e79
mov dword [0x4604e8], 0x1e
mov esi, 6
cmp esi, 0x1b
mov edi, esi
jle 0x402ef7
mov edi, 0x1b
push 1
push 0x4651b0
call fcn.00408460
add esp, 8
test eax, eax
je 0x402f26
push edi
call fcn.0040d820
add esp, 4
inc esi
jmp 0x402eeb
mov dword [0x463ae4], esi
mov dword [0x4604e8], 0x3e8
mov ecx, dword [ebp]
mov eax, dword [esp + 0x3c]
mov dword [eax], ecx
mov dword [ebp], eax
mov dword [0x4651b0], 0
mov al, byte [esp + 0x1a]
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x130
ret 0x20