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

Disassembly:
push 0xffffffffffffffff
push 0x4a2622
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2dc
push ebx
push ebp
push esi
push edi
xor edi, edi
lea ecx, [esp + 0x26c]
mov dword [esp + 0x2f4], edi
mov dword [esp + 0x80], edi
call fcn.00413e70
mov ebp, dword [esp + 0x2fc]
xor ebx, ebx
mov ecx, ebp
mov byte [esp + 0x2f4], 1
mov dword [esp + 0x8c], ebx
call fcn.004128f0
test eax, eax
jle 0x403d48
push ebx
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 2
jne 0x402cff
push ebx
mov ecx, ebp
call fcn.004128e0
mov dword [esp + 0x35c], eax
push ebx
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0xf
jne 0x402d1c
push ebx
mov ecx, ebp
call fcn.004128e0
mov dword [esp + 0x358], eax
push ebx
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0xc
jne 0x402d54
push ebx
mov ecx, ebp
call fcn.004128e0
mov dword [esp + 0x354], eax
xor ecx, ecx
mov edx, dword [eax + 0x80]
add ecx, 4
cmp ecx, 0xc
mov edx, dword [ecx + edx - 4]
mov dword [esp + ecx + 0x340], edx
jl 0x402d3b
push ebx
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0xe
jne 0x402e02
push ebx
mov ecx, ebp
call fcn.004128e0
mov ecx, dword [eax + 0x9c]
mov edx, dword [eax + 0x98]
push ecx
mov ecx, dword [eax + 0x94]
push edx
mov edx, dword [eax + 0x90]
push ecx
mov ecx, dword [eax + 0x8c]
push edx
mov edx, dword [eax + 0x88]
push ecx
mov ecx, dword [eax + 0x84]
push edx
mov edx, dword [eax + 0x80]
push ecx
mov ecx, dword [eax + 0x7c]
push edx
mov edx, dword [eax + 0x78]
push ecx
mov ecx, dword [eax + 0x74]
push edx
mov edx, dword [eax + 0x70]
push ecx
mov ecx, dword [eax + 0x6c]
push edx
mov edx, dword [eax + 0x68]
push ecx
mov ecx, dword [eax + 0x64]
push edx
mov edx, dword [eax + 0x60]
push ecx
push edx
lea ecx, [esp + 0x2ec]
call fcn.00413e80
lea eax, [esp + 0x2ac]
lea ecx, [esp + 0x304]
push eax
mov byte [esp + 0x2f8], 2
call fcn.004142e0
lea ecx, [esp + 0x2ac]
mov byte [esp + 0x2f4], 1
call fcn.004340a0
push ebx
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0x15
jne 0x402e9e
push ebx
mov ecx, ebp
call fcn.004128e0
mov esi, eax
lea ecx, [esi + 0x60]
push ecx
lea ecx, [esp + 0x160]
call fcn.00413d40
lea ecx, [esp + 0x1ec]
mov byte [esp + 0x2f4], 3
call fcn.00413e70
mov edx, dword [esi + 0x6c]
lea eax, [esp + 0x15c]
push edx
push eax
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x2fc], 4
call fcn.00413ff0
lea ecx, [esp + 0x1ec]
push ecx
lea ecx, [esp + 0x308]
call fcn.004142e0
lea ecx, [esp + 0x1ec]
mov byte [esp + 0x2f4], 3
call fcn.004340a0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x2f4], 1
call fcn.004340a0
push ebx
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0x16
jne 0x402ef4
push ebx
mov ecx, ebp
call fcn.004128e0
add eax, 0x60
lea ecx, [esp + 0x150]
push eax
call fcn.00413d40
lea edx, [esp + 0x150]
lea ecx, [esp + 0x304]
push edx
mov byte [esp + 0x2f8], 5
call fcn.004141e0
lea ecx, [esp + 0x150]
mov byte [esp + 0x2f4], 1
call fcn.004340a0
push ebx
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0x21
jne 0x402f8a
push ebx
mov ecx, ebp
call fcn.004128e0
add eax, 0x60
lea ecx, [esp + 0x168]
push eax
call fcn.00413d40
lea ecx, [esp + 0x22c]
mov byte [esp + 0x2f4], 6
call fcn.00413e70
lea eax, [esp + 0x168]
lea ecx, [esp + 0x22c]
push eax
mov byte [esp + 0x2f8], 7
call fcn.00414220
lea ecx, [esp + 0x22c]
push ecx
lea ecx, [esp + 0x308]
call fcn.004142e0
lea ecx, [esp + 0x22c]
mov byte [esp + 0x2f4], 6
call fcn.004340a0
lea ecx, [esp + 0x168]
mov byte [esp + 0x2f4], 1
call fcn.004340a0
push ebx
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 0x18
jne 0x402fbc
push ebx
mov ecx, ebp
call fcn.004128e0
mov ecx, dword [eax + 0x60]
cmp ecx, 1
jne 0x402fb5
mov dx, cx
mov word [esp + 0x80], dx
jmp 0x402fbc
mov dword [esp + 0x80], edi
push ebx
mov ecx, ebp
call fcn.004128e0
cmp dword [eax + 0x4c], 8
jne 0x403bc4
push ebx
mov ecx, ebp
call fcn.004128e0
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0x60]
push 0xc
mov dword [esp + 0x88], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x348]
mov dword [esp + 0x18], edi
mov dword [eax], ecx
mov edx, dword [esp + 0x34c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x350]
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [eax + 8], ecx
lea edi, [esp + 0x3c]
xor esi, esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x304]
push edx
call fcn.00414320
mov eax, dword [eax + esi]
add esi, 4
mov dword [edi], eax
add edi, 4
cmp esi, 0x10
jl 0x403019
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 4
mov dword [esp + 0x14], eax
jl 0x403017
mov edx, dword [esp + 0x84]
xor ecx, ecx
xor eax, eax
cmp edx, ecx
mov dword [esp + 0x14], ecx
jle 0x403bb5
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0x68]
cmp dword [edx + ecx*4], 0xffffffff
jne 0x403ba1
lea ebp, [ecx - 1]
push 0x24
sub ebp, eax
inc ebp
lea eax, [ebp - 2]
mov dword [esp + 0x3c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x24
mov esi, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
lea eax, [ebp*4]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 0xc
xor eax, eax
test ebp, ebp
jle 0x4030c6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
inc eax
add ecx, 4
cmp eax, ebp
mov edx, dword [edx + 0x68]
mov edx, dword [ecx + edx - 4]
mov dword [ebx + eax*4 - 4], edx
jl 0x4030af
lea eax, [ebp*4]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x35c]
add esp, 4
test ecx, ecx
mov dword [esp + 0x7c], eax
je 0x403130
mov edx, dword [ecx + 0x60]
test edx, edx
jle 0x403130
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x90], 1
jle 0x403130
xor ecx, ecx
test ebp, ebp
jle 0x403130
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x18]
inc ecx
mov edx, dword [eax + 0x98]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + edx]
mov eax, dword [esp + 0x7c]
mov dword [eax + ecx*4 - 4], edx
mov edx, dword [esp + 0x10]
add edx, 4
cmp ecx, ebp
mov dword [esp + 0x10], edx
jl 0x403107
mov ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x403b5a
lea edx, [eax + 4]
sub eax, ebx
mov dword [esp + 0x10], edx
lea ebp, [ebx + 8]
mov dword [esp + 0x88], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x35c]
mov eax, dword [ebx]
cmp word [esp + 0x80], 1
mov edx, dword [ecx + 0x68]
lea eax, [eax + eax*2]
fld dword [edx + eax*4]
fld dword [edx + eax*4 + 4]
fld dword [edx + eax*4 + 8]
lea eax, [edx + eax*4]
fld dword [esp + 0x5c]
fmul st(1)
fld dword [esp + 0x4c]
fmul st(3)
faddp st(1)
fld dword [esp + 0x3c]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x6c]
fstp dword [esi]
fld dword [esp + 0x60]
fmul st(1)
fld dword [esp + 0x50]
fmul st(3)
faddp st(1)
fld dword [esp + 0x40]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [esi + 4]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x54]
fmul st(3)
faddp st(1)
fld dword [esp + 0x44]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x74]
fstp dword [esi + 8]
mov ecx, dword [esp + 0x35c]
mov eax, dword [ebp - 4]
fstp st(0)
mov edx, dword [ecx + 0x68]
lea eax, [eax + eax*2]
fstp st(0)
lea eax, [edx + eax*4]
fstp st(0)
fld dword [eax]
fld dword [eax + 4]
fld dword [eax + 8]
fld dword [esp + 0x5c]
fmul st(1)
fld dword [esp + 0x4c]
fmul st(3)
faddp st(1)
fld dword [esp + 0x3c]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x6c]
jne 0x4032ca
fstp dword [esi + 0x18]
fld dword [esp + 0x60]
fmul st(1)
fld dword [esp + 0x50]
fmul st(3)
faddp st(1)
fld dword [esp + 0x40]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [esi + 0x1c]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x54]
fmul st(3)
faddp st(1)
fld dword [esp + 0x44]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x74]
fstp dword [esi + 0x20]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x35c]
fstp st(0)
mov edx, dword [ecx + 0x68]
lea eax, [eax + eax*2]
fstp st(0)
lea eax, [edx + eax*4]
fstp st(0)
fld dword [eax]
fld dword [eax + 4]
fld dword [eax + 8]
fld dword [esp + 0x5c]
fmul st(1)
fld dword [esp + 0x4c]
fmul st(3)
faddp st(1)
fld dword [esp + 0x3c]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x6c]
fstp dword [esi + 0xc]
fld dword [esp + 0x60]
fmul st(1)
fld dword [esp + 0x50]
fmul st(3)
faddp st(1)
fld dword [esp + 0x40]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [esi + 0x10]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x54]
fmul st(3)
faddp st(1)
fld dword [esp + 0x44]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x74]
fstp dword [esi + 0x14]
jmp 0x40337f
fstp dword [esi + 0xc]
fld dword [esp + 0x60]
fmul st(1)
fld dword [esp + 0x50]
fmul st(3)
faddp st(1)
fld dword [esp + 0x40]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [esi + 0x10]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x54]
fmul st(3)
faddp st(1)
fld dword [esp + 0x44]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x74]
fstp dword [esi + 0x14]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x35c]
fstp st(0)
mov edx, dword [ecx + 0x68]
lea eax, [eax + eax*2]
fstp st(0)
lea eax, [edx + eax*4]
fstp st(0)
fld dword [eax]
fld dword [eax + 4]
fld dword [eax + 8]
fld dword [esp + 0x5c]
fmul st(1)
fld dword [esp + 0x4c]
fmul st(3)
faddp st(1)
fld dword [esp + 0x3c]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x6c]
fstp dword [esi + 0x18]
fld dword [esp + 0x60]
fmul st(1)
fld dword [esp + 0x50]
fmul st(3)
faddp st(1)
fld dword [esp + 0x40]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x70]
fstp dword [esi + 0x1c]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x54]
fmul st(3)
faddp st(1)
fld dword [esp + 0x44]
fmul st(4)
faddp st(1)
fadd dword [esp + 0x74]
fstp dword [esi + 0x20]
mov ecx, dword [esp + 0x358]
fstp st(0)
fstp st(0)
test ecx, ecx
fstp st(0)
je 0x4037cb
mov eax, dword [ecx + 0x60]
test eax, eax
jle 0x4037cb
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x90]
cmp eax, 1
jg 0x40346d
mov word [0x4af730], 0
mov eax, dword [ebx]
mov ecx, dword [ecx + 0x68]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4]
mov dword [edi], edx
mov eax, dword [ebx]
mov ecx, dword [esp + 0x358]
lea eax, [eax + eax*2]
mov edx, dword [ecx + 0x68]
mov eax, dword [edx + eax*4 + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx]
mov edx, dword [esp + 0x358]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax + ecx*4 + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebp - 4]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x358]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx + edx*4]
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [esp + 0x358]
lea eax, [eax + eax*2]
mov edx, dword [ecx + 0x68]
mov eax, dword [edx + eax*4 + 4]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [esp + 0x358]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax + ecx*4 + 8]
mov dword [edi + 0x14], ecx
mov eax, dword [ebp]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x358]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx + edx*4]
mov dword [edi + 0x18], edx
mov eax, dword [ebp]
mov ecx, dword [esp + 0x358]
lea eax, [eax + eax*2]
mov edx, dword [ecx + 0x68]
mov eax, dword [edx + eax*4 + 4]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp]
jmp 0x403538
cmp eax, dword [edx + 0x60]
jne 0x403551
mov edx, dword [esp + 0x7c]
mov word [0x4af730], 0
mov ecx, dword [ecx + 0x68]
mov eax, dword [edx]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*4]
mov dword [edi], eax
mov eax, dword [edx]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x358]
mov eax, dword [eax + 0x68]
mov ecx, dword [eax + ecx*4 + 4]
mov dword [edi + 4], ecx
mov eax, dword [edx]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x358]
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx + edx*4 + 8]
mov ecx, dword [esp + 0x10]
mov dword [edi + 8], edx
mov edx, dword [esp + 0x358]
mov eax, dword [ecx]
mov edx, dword [edx + 0x68]
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4]
mov dword [edi + 0xc], eax
mov eax, dword [ecx]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x358]
mov eax, dword [eax + 0x68]
mov edx, dword [eax + edx*4 + 4]
mov dword [edi + 0x10], edx
mov eax, dword [ecx]
mov ecx, dword [esp + 0x358]
lea eax, [eax + eax*2]
mov edx, dword [ecx + 0x68]
mov ecx, dword [esp + 0x88]
mov eax, dword [edx + eax*4 + 8]
mov dword [edi + 0x14], eax
mov eax, dword [ecx + ebp]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x358]
mov eax, dword [eax + 0x68]
mov edx, dword [eax + edx*4]
mov dword [edi + 0x18], edx
mov eax, dword [ecx + ebp]
mov edx, dword [esp + 0x358]
lea eax, [eax + eax*2]
mov edx, dword [edx + 0x68]
mov eax, dword [edx + eax*4 + 4]
mov dword [edi + 0x1c], eax
mov eax, dword [ecx + ebp]
mov edx, dword [esp + 0x358]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x68]
mov ecx, dword [eax + ecx*4 + 8]
mov dword [edi + 0x20], ecx
jmp 0x403a4d
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edx
push eax
push ecx
lea ecx, [esp + 0xfc]
call fcn.00413d60
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x300], 8
call fcn.00413d60
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push edx
push eax
push ecx
lea ecx, [esp + 0x120]
mov byte [esp + 0x300], 9
call fcn.00413d60
lea ecx, [esp + 0x20]
mov byte [esp + 0x2f4], 0xa
call fcn.00413d30
lea ecx, [esp + 0xa8]
mov byte [esp + 0x2f4], 0xb
call fcn.00413d30
lea ecx, [esp + 0xcc]
mov byte [esp + 0x2f4], 0xc
call fcn.00413d30
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x118]
sub esp, 0xc
mov byte [esp + 0x300], 0xd
mov edx, esp
sub esp, 0xc
mov dword [edx], eax
mov eax, dword [esp + 0x134]
mov dword [edx + 4], ecx
mov ecx, esp
sub esp, 0xc
mov dword [edx + 8], eax
mov edx, dword [esp + 0xfc]
mov eax, dword [esp + 0x100]
mov dword [ecx], edx
mov edx, dword [esp + 0x104]
mov dword [ecx + 4], eax
mov eax, esp
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x118]
mov dword [eax], ecx
mov ecx, dword [esp + 0x11c]
mov dword [eax + 4], edx
lea edx, [esp + 0x204]
push edx
mov dword [eax + 8], ecx
call fcn.00402b70
add esp, 0x28
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov byte [esp + 0x2f4], 0xe
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x9c]
call fcn.004340a0
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x2f4], 0xd
call fcn.004340a0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x120], ecx
mov dword [esp + 0xa8], ecx
lea ecx, [esp + 0x120]
mov dword [esp + 0x124], edx
mov dword [esp + 0x128], eax
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], eax
call fcn.004340a0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x144], ecx
mov dword [esp + 0xcc], ecx
lea ecx, [esp + 0x144]
mov dword [esp + 0x148], edx
mov dword [esp + 0x14c], eax
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], eax
call fcn.004340a0
lea ecx, [edi + 0x18]
xor eax, eax
mov edx, dword [esp + eax + 0x20]
add eax, 4
mov dword [ecx - 0x18], edx
mov edx, dword [esp + eax + 0xa4]
mov dword [ecx - 0xc], edx
mov edx, dword [esp + eax + 0xc8]
mov dword [ecx], edx
add ecx, 4
cmp eax, 0xc
jl 0x403739
lea ecx, [esp + 0xcc]
mov byte [esp + 0x2f4], 0xc
call fcn.004340a0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x2f4], 0xb
call fcn.004340a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x2f4], 0xa
call fcn.004340a0
lea ecx, [esp + 0x114]
mov byte [esp + 0x2f4], 9
call fcn.004340a0
lea ecx, [esp + 0xd8]
mov byte [esp + 0x2f4], 8
call fcn.004340a0
lea ecx, [esp + 0xf0]
jmp 0x403a40
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push ecx
push edx
lea ecx, [esp + 0x108]
call fcn.00413d60
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
lea ecx, [esp + 0xf0]
mov byte [esp + 0x300], 0xf
call fcn.00413d60
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push eax
push ecx
push edx
lea ecx, [esp + 0x114]
mov byte [esp + 0x300], 0x10
call fcn.00413d60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2f4], 0x11
call fcn.00413d30
lea ecx, [esp + 0xb4]
mov byte [esp + 0x2f4], 0x12
call fcn.00413d30
lea ecx, [esp + 0xc0]
mov byte [esp + 0x2f4], 0x13
call fcn.00413d30
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x10c]
sub esp, 0xc
mov byte [esp + 0x300], 0x14
mov eax, esp
sub esp, 0xc
mov dword [eax], ecx
mov ecx, dword [esp + 0x128]
mov dword [eax + 4], edx
mov edx, esp
sub esp, 0xc
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x10c]
mov dword [edx], eax
mov eax, dword [esp + 0x110]
mov dword [edx + 4], ecx
mov ecx, esp
mov dword [edx + 8], eax
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x124]
mov dword [ecx], edx
mov edx, dword [esp + 0x128]
mov dword [ecx + 4], eax
lea eax, [esp + 0x1f8]
push eax
mov dword [ecx + 8], edx
call fcn.00402b70
add esp, 0x28
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov byte [esp + 0x2f4], 0x15
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x90]
call fcn.004340a0
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x2f4], 0x14
call fcn.004340a0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x138], ecx
mov dword [esp + 0xb4], ecx
lea ecx, [esp + 0x138]
mov dword [esp + 0x13c], edx
mov dword [esp + 0x140], eax
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], eax
call fcn.004340a0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x12c], ecx
mov dword [esp + 0xc0], ecx
lea ecx, [esp + 0x12c]
mov dword [esp + 0x130], edx
mov dword [esp + 0x134], eax
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], eax
call fcn.004340a0
lea ecx, [edi + 0x18]
xor eax, eax
mov edx, dword [esp + eax + 0x2c]
add eax, 4
mov dword [ecx - 0x18], edx
mov edx, dword [esp + eax + 0xb0]
mov dword [ecx - 0xc], edx
mov edx, dword [esp + eax + 0xbc]
mov dword [ecx], edx
add ecx, 4
cmp eax, 0xc
jl 0x4039b3
lea ecx, [esp + 0xc0]
mov byte [esp + 0x2f4], 0x13
call fcn.004340a0
lea ecx, [esp + 0xb4]
mov byte [esp + 0x2f4], 0x12
call fcn.004340a0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2f4], 0x11
call fcn.004340a0
lea ecx, [esp + 0x108]
mov byte [esp + 0x2f4], 0x10
call fcn.004340a0
lea ecx, [esp + 0xe4]
mov byte [esp + 0x2f4], 0xf
call fcn.004340a0
lea ecx, [esp + 0xfc]
mov byte [esp + 0x2f4], 1
call fcn.004340a0
mov ecx, dword [esp + 0x354]
test ecx, ecx
je 0x403b1e
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x78]
cmp eax, 1
jle 0x403b1e
shl eax, 2
cmp dword [esp + 0x84], eax
jne 0x403ad1
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx + 0x80]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x18]
sar eax, 2
mov edx, dword [edx + 0x80]
mov eax, dword [edx + eax*4]
mov edx, dword [esp + 0x1c]
lea eax, [eax + eax*2]
shl eax, 2
mov ecx, dword [eax + ecx]
mov dword [edx], ecx
mov ecx, dword [esp + 0x354]
mov ecx, dword [ecx + 0x80]
mov ecx, dword [ecx + eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x354]
mov ecx, dword [ecx + 0x80]
mov eax, dword [ecx + eax + 8]
mov dword [edx + 8], eax
jmp 0x403b22
mov edx, dword [edx + 0x80]
mov eax, dword [edx]
lea edx, [eax + 1]
cmp edx, dword [ecx + 0x78]
jg 0x403b1e
mov ecx, dword [ecx + 0x80]
lea eax, [eax + eax*2]
shl eax, 2
mov edx, dword [eax + ecx]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], edx
mov edx, dword [esp + 0x354]
mov edx, dword [edx + 0x80]
mov edx, dword [edx + eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x354]
mov edx, dword [edx + 0x80]
mov eax, dword [edx + eax + 8]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x300]
push 0
push 0
push 1
mov ecx, dword [ecx]
push edx
push 3
push edi
mov eax, dword [ecx]
push 3
push esi
call dword [eax + 8]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
add edx, 4
add ebp, 4
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], eax
jne 0x403153
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x80]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x30c]
mov ecx, edx
lea eax, [edx - 1]
add esp, 0x10
lea edx, [ecx*4 + 4]
add eax, 2
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x84]
inc ecx
cmp ecx, edx
mov dword [esp + 0x14], ecx
jl 0x403063
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edi, edi
push ebx
mov ecx, ebp
call fcn.004128e0
mov ecx, eax
call fcn.00416160
test eax, eax
je 0x403d31
lea ecx, [esp + 0x304]
push ecx
lea ecx, [esp + 0x270]
call fcn.00413fd0
lea ecx, [esp + 0x174]
call fcn.00413e70
lea edx, [esp + 0x304]
lea ecx, [esp + 0x174]
push edx
mov byte [esp + 0x2f8], 0x16
call fcn.00413fd0
mov eax, dword [esp + 0x344]
mov ecx, dword [esp + 0x348]
mov edx, dword [esp + 0x34c]
mov dword [esp + 0x1b4], eax
mov eax, dword [esp + 0x35c]
mov dword [esp + 0x1b8], ecx
mov ecx, dword [esp + 0x358]
sub esp, 0x60
mov dword [esp + 0x22c], eax
mov dword [esp + 0x21c], edx
mov edx, dword [esp + 0x3b4]
mov esi, esp
lea eax, [esp + 0x1d4]
mov dword [esp + 0x228], ecx
mov dword [esp + 0xe8], esp
push eax
mov ecx, esi
mov dword [esp + 0x224], 0x3f800000
mov dword [esp + 0x228], edx
call fcn.00413fd0
mov edx, dword [esp + 0x214]
lea ecx, [esi + 0x40]
mov dword [esi + 0x40], edx
mov eax, dword [esp + 0x218]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x21c]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x220]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x224]
mov dword [esi + 0x50], ecx
mov edx, dword [esp + 0x228]
mov dword [esi + 0x54], edx
mov eax, dword [esp + 0x22c]
mov dword [esi + 0x58], eax
mov cx, word [esp + 0x230]
mov word [esi + 0x5c], cx
mov edx, dword [esp + 0x360]
mov ecx, ebp
push edx
push ebx
mov byte [esp + 0x35c], 0x16
call fcn.004128e0
push eax
call fcn.00402c80
add esp, 0x68
lea eax, [esp + 0x26c]
lea ecx, [esp + 0x304]
push eax
call fcn.00413fd0
lea ecx, [esp + 0x174]
mov byte [esp + 0x2f4], 1
call fcn.004340a0
xor edi, edi
inc ebx
mov ecx, ebp
mov dword [esp + 0x8c], ebx
call fcn.004128f0
cmp ebx, eax
jl 0x402ce2
lea ecx, [esp + 0x26c]
mov byte [esp + 0x2f4], 0
call fcn.004340a0
lea ecx, [esp + 0x304]
mov dword [esp + 0x2f4], 0xffffffff
call fcn.004340a0
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2e8
ret