Function at 0x403c40
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c2a60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
mov ebx, dword [ebp + 0x2c]
push esi
push edi
mov eax, dword [ebx + 8]
xor edi, edi
test eax, eax
mov dword [esp + 0x30], ecx
jle 0x403ccb
mov eax, dword [ebx + 4]
mov esi, dword [eax + edi*4]
mov eax, dword [ebp + 8]
test eax, eax
mov byte [esi + 0x20], 0
jne 0x403cc3
mov ecx, dword [ebp + 0x30]
push ecx
mov ecx, esi
call fcn.004f0d50
mov ecx, dword [esi + 0x1b0]
mov dword [esi + 0x14], eax
cmp ecx, 2
jne 0x403cc3
mov edx, dword [esi + 0x360]
mov ecx, dword [edx + 0x18]
mov edx, dword [ecx + 0x48]
test edx, edx
jne 0x403cb5
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x403cc3
cmp eax, 0xffffffff
je 0x403cc3
mov ecx, dword [ebp + 0x30]
mov edx, dword [ecx + 4]
mov dword [edx + eax*4], esi
mov eax, dword [ebx + 8]
inc edi
cmp edi, eax
jl 0x403c74
xor edi, edi
lea ecx, [esp + 0x160]
mov dword [esp + 0x11c], edi
mov dword [esp + 0x120], 0xffffffff
mov dword [esp + 0x134], edi
mov dword [esp + 0x138], edi
mov dword [esp + 0x13c], edi
mov dword [esp + 0x140], edi
mov dword [esp + 0x144], 0xa
call fcn.004ccd50
mov eax, 0x5e2838
mov dword [esp + 0x238], edi
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], edi
mov eax, dword [ebp + 8]
mov byte [esp + 0x238], 3
cmp eax, edi
je 0x403daf
mov eax, dword [ebx + 8]
xor esi, esi
cmp eax, edi
jle 0x403f1d
mov edi, dword [ebp + 0x2c]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x50]
mov eax, dword [eax + esi*4]
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.0040c9d0
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
jl 0x403d8b
xor edi, edi
jmp 0x403f1d
mov ecx, dword [ebx + 8]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0xc], eax
jle 0x403f1d
mov edx, dword [ebx + 4]
mov esi, dword [edx + eax*4]
mov eax, dword [esi + 0x1b0]
mov dword [esi + 0x1c], edi
cmp eax, 2
jne 0x403de8
mov eax, dword [esp + 0x50]
push esi
push eax
lea ecx, [esp + 0x50]
call fcn.0040c9d0
jmp 0x403f09
cmp dword [esi + 0x148], edi
je 0x403e04
mov ecx, dword [esp + 0x78]
push esi
push ecx
lea ecx, [esp + 0x78]
call fcn.0040c9d0
jmp 0x403f09
mov ecx, esi
call fcn.004f08d0
test eax, eax
jne 0x403e23
mov edx, dword [esp + 0x50]
push esi
push edx
lea ecx, [esp + 0x50]
call fcn.0040c9d0
jmp 0x403f09
mov ecx, esi
call fcn.004ed430
test al, al
je 0x403e73
mov eax, dword [esi + 0x360]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x48], edi
jne 0x403e41
cmp dword [ebp + 0x10], edi
je 0x403e5f
lea ecx, [esp + 0x160]
push ecx
mov ecx, esi
call fcn.004ec230
mov edx, dword [esi]
lea eax, [esp + 0x160]
push eax
mov ecx, esi
call dword [edx + 0x10]
mov ecx, dword [esp + 0x50]
push esi
push ecx
lea ecx, [esp + 0x50]
call fcn.0040c9d0
jmp 0x403f09
mov ecx, esi
call fcn.004f05a0
test al, al
jne 0x403e0f
mov eax, dword [esi + 0x360]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x48], edi
jne 0x403e9c
cmp dword [ebp + 0x10], edi
jne 0x403e9c
mov ecx, dword [esp + 0x8c]
push esi
push ecx
jmp 0x403ef9
lea edx, [esp + 0x160]
mov ecx, esi
push edx
call fcn.004ec230
mov eax, dword [esi]
lea ecx, [esp + 0x160]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [ebp + 0x30]
mov edx, dword [esi + 0x14]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edx*4]
cmp dword [ecx + 0x1b0], 2
jne 0x403ef0
lea edx, [esp + 0x160]
push edx
call fcn.004ec2b0
mov eax, dword [esi]
lea ecx, [esp + 0x160]
push ecx
mov ecx, esi
call dword [eax + 0x10]
jmp 0x403e0f
mov eax, dword [esp + 0x8c]
push esi
push eax
lea ecx, [esp + 0x8c]
call fcn.0040c9d0
mov byte [esi + 0x20], 1
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x403dc0
lea ecx, [esp + 0x70]
push ecx
call fcn.00402cd0
mov edx, dword [esp + 0x34]
add esp, 4
lea ecx, [edx + 0x2e0]
call fcn.004e33b0
mov ebx, dword [sym.imp.msvcrt.dll_memmove]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x78]
lea esi, [eax - 1]
cmp esi, edi
jl 0x403fca
mov ecx, dword [esp + 0x74]
mov edi, dword [ecx + esi*4]
cmp dword [edi + 0x1c], 0xffffffff
jne 0x403fc7
mov edx, dword [esp + 0x50]
push edi
push edx
lea ecx, [esp + 0x50]
call fcn.0040c9d0
mov eax, dword [esp + 0x78]
sub eax, esi
dec eax
je 0x403f89
shl eax, 2
push eax
mov eax, dword [esp + 0x78]
lea ecx, [eax + esi*4 + 4]
lea edx, [eax + esi*4]
push ecx
push edx
call ebx
add esp, 0xc
mov edx, dword [esp + 0x78]
dec edx
mov dword [esp + 0x78], edx
mov eax, dword [edi + 0x360]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0x48]
test ecx, ecx
jne 0x403fa9
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x403fc7
lea ecx, [esp + 0x160]
push ecx
mov ecx, edi
call fcn.004ec230
mov edx, dword [edi]
lea eax, [esp + 0x160]
push eax
mov ecx, edi
call dword [edx + 0x10]
dec esi
jns 0x403f4e
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
jne 0x403ff6
cmp dword [ebp + 0xc], edi
je 0x403ff6
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x84]
push ecx
lea eax, [esp + 0x74]
push edx
push eax
call fcn.00403460
add esp, 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x98], 0x5e27fc
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], edi
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x238], 4
add ecx, 0x2e0
call fcn.004e3ac0
mov esi, eax
mov eax, dword [esp + 0xa0]
shl esi, 2
cmp eax, edi
jg 0x404055
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0xa0]
call fcn.0046d900
jmp 0x404092
lea edx, [esi + eax]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0xa0]
mov edi, eax
call fcn.0046d900
lea eax, [edi*4]
push eax
mov eax, dword [esp + 0xa0]
push eax
lea ecx, [eax + esi*4]
push ecx
call ebx
mov edx, dword [esp + 0xa8]
add esp, 0xc
push esi
push edx
call fcn.005463a0
xor edi, edi
mov eax, esi
dec esi
test eax, eax
je 0x4040ad
xor eax, eax
inc esi
mov ecx, dword [esp + 0x9c]
add eax, 4
dec esi
mov dword [ecx + eax - 4], edi
jne 0x40409c
mov eax, dword [esp + 0x8c]
xor edi, edi
test eax, eax
jle 0x4040f4
mov edx, dword [esp + 0x88]
mov esi, dword [edx + edi*4]
mov ecx, esi
call fcn.004f1c60
mov ecx, esi
mov ebx, eax
call fcn.004f0550
lea eax, [eax + ebx*4]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + eax*4]
inc edx
inc edi
mov dword [ecx + eax*4], edx
mov eax, dword [esp + 0x8c]
cmp edi, eax
jl 0x4040ba
mov ecx, dword [esp + 0x50]
xor eax, eax
test ecx, ecx
jle 0x404117
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov edx, dword [edx + eax*4]
inc eax
mov dword [edx + 0x1c], ecx
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jl 0x4040fe
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0xa0]
add ecx, eax
xor eax, eax
test edx, edx
mov dword [esp + 0x10], ecx
jle 0x40414f
mov edx, dword [esp + 0x9c]
cmp dword [edx + eax*4], 0
je 0x40413f
mov dword [edx + eax*4], ecx
inc ecx
mov edx, dword [esp + 0xa0]
inc eax
cmp eax, edx
jl 0x40412e
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x8c]
xor eax, eax
test ecx, ecx
jle 0x404182
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x9c]
mov ecx, dword [ecx + eax*4]
inc eax
mov edx, dword [ecx + 0x1c]
mov edx, dword [esi + edx*4]
mov dword [ecx + 0x1c], edx
mov ecx, dword [esp + 0x8c]
cmp eax, ecx
jl 0x40415c
mov eax, dword [esp + 0x50]
mov esi, dword [ebp + 0x2c]
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0046d900
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 4]
test edx, edx
je 0x4041af
mov edi, dword [ecx]
add ecx, 4
mov dword [eax], edi
add eax, 4
dec edx
jne 0x4041a2
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0x8c]
push 0xffffffffffffffff
lea edx, [edi + ecx]
mov ecx, esi
push edx
call fcn.0046d900
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
test edx, edx
lea eax, [eax + edi*4]
je 0x4041eb
mov edi, dword [ecx]
add ecx, 4
mov dword [eax], edi
add eax, 4
dec edx
jne 0x4041de
lea ecx, [esp + 0x1b0]
push ecx
call fcn.00402b70
mov edx, dword [esp + 0x34]
add esp, 4
lea edi, [edx + 0x2e0]
mov ecx, edi
call fcn.004dfab0
mov ecx, dword [eax + 0x16c]
test ecx, ecx
je 0x404221
mov dword [esp + 0x1e8], 1
mov ecx, edi
call fcn.004dfab0
cmp dword [eax + 0x20], 1
jne 0x404239
mov dword [esp + 0x1dc], 3
mov ebx, dword [ebp + 0x3c]
mov esi, dword [esi + 8]
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
mov edi, dword [ebx + 8]
add esi, eax
test edi, edi
jg 0x404258
push esi
mov ecx, ebx
call fcn.0040afc0
jmp 0x404286
lea ecx, [esi + edi]
push ecx
mov ecx, ebx
call fcn.0040afc0
mov eax, dword [ebx + 4]
mov edx, esi
shl edi, 7
shl edx, 7
push edi
add edx, eax
push eax
push edx
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebx + 4]
add esp, 0xc
push esi
push eax
call fcn.0040ce30
mov ecx, esi
dec esi
test ecx, ecx
je 0x4042ad
xor eax, eax
lea edx, [esi + 1]
mov edi, dword [ebx + 4]
mov ecx, 0x20
add edi, eax
lea esi, [esp + 0x1b0]
add eax, 0x80
dec edx
rep movsd dword es:[edi], dword [esi]
jne 0x404292
mov edx, dword [ebp + 0x38]
mov ebx, dword [esp + 0x10]
push 0xffffffffffffffff
mov edi, dword [edx + 8]
test edi, edi
jg 0x4042c9
mov esi, edx
push ebx
mov ecx, esi
call fcn.0046d900
jmp 0x4042fa
mov esi, dword [ebp + 0x38]
lea eax, [edi + ebx]
push eax
mov ecx, esi
call fcn.0046d900
mov eax, dword [esi + 4]
lea ecx, [edi*4]
push ecx
push eax
lea edx, [eax + ebx*4]
push edx
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [esi + 4]
add esp, 0xc
push ebx
push eax
call fcn.005463a0
xor edi, edi
cmp ebx, edi
je 0x404315
xor eax, eax
lea ecx, [ebx]
mov edx, dword [esi + 4]
add eax, 4
dec ecx
mov dword [edx + eax - 4], edi
jne 0x404304
cmp ebx, edi
jne 0x40433f
mov ecx, dword [ebp + 0x34]
mov eax, dword [ecx + 4]
lea esi, [ecx + 4]
cmp eax, edi
mov dword [esp + 0x18], esi
je 0x404334
push eax
call sub.mfc42u.dll_operatordelete
mov ecx, dword [ebp + 0x34]
add esp, 4
mov dword [esi], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], edi
jmp 0x404448
mov esi, dword [ebp + 0x34]
mov edx, dword [esi + 4]
lea eax, [esi + 4]
cmp edx, edi
mov dword [esp + 0x18], eax
jne 0x404377
lea eax, [ebx + ebx*2]
shl eax, 2
push eax
call sub.mfc42u.dll_operatornew
mov ecx, dword [esp + 0x1c]
add esp, 4
push ebx
push eax
mov dword [ecx], eax
call fcn.00415f70
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
jmp 0x404448
mov ecx, dword [esi + 0xc]
cmp ebx, ecx
jg 0x40439e
mov eax, dword [esi + 8]
cmp ebx, eax
jle 0x404396
mov ecx, ebx
sub ecx, eax
lea eax, [eax + eax*2]
push ecx
lea ecx, [edx + eax*4]
push ecx
call fcn.00415f70
mov dword [esi + 8], ebx
jmp 0x404448
mov eax, dword [esi + 0x10]
cmp eax, edi
jne 0x4043c9
mov eax, dword [esi + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4043bd
mov eax, 4
jmp 0x4043c9
cmp eax, 0x400
jle 0x4043c9
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x20], eax
jl 0x4043d7
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x20]
lea edx, [eax + eax*2]
shl edx, 2
push edx
call sub.mfc42u.dll_operatornew
mov ecx, dword [ebp + 0x34]
mov edx, dword [esp + 0x1c]
mov edi, eax
add esp, 4
mov ecx, dword [ecx + 8]
mov esi, dword [edx]
mov dword [esp + 0x14], eax
lea ecx, [ecx + ecx*2]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x34]
mov ecx, dword [esi + 8]
sub edx, ecx
lea ecx, [ecx + ecx*2]
push edx
lea edx, [eax + ecx*4]
push edx
call fcn.00415f70
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
push eax
call sub.mfc42u.dll_operatordelete
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [edi], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ecx
xor edi, edi
mov edx, dword [esp + 0x30]
xor eax, eax
cmp dword [edx + 0x800], edi
jle 0x404471
mov ecx, dword [edx + 0x7fc]
inc eax
mov ecx, dword [ecx + eax*4 - 4]
mov dword [ecx + 0x134], edi
mov ecx, dword [edx + 0x800]
cmp eax, ecx
jl 0x404456
mov dword [esp + 0xac], 0x5e27c0
mov dword [esp + 0xb0], edi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xc0], 0x5e2874
mov dword [esp + 0xc4], edi
mov dword [esp + 0xd0], edi
mov eax, dword [esp + 0x78]
cmp eax, 0xffffffff
je 0x4044c1
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xcc], edi
cmp eax, edi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc], edi
jle 0x4047d9
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
mov edx, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
mov esi, dword [edx + 4]
mov dword [esi + ecx], eax
mov esi, dword [edx + 4]
mov dword [esi + ecx + 0x5c], eax
mov eax, dword [edx + 4]
mov dword [eax + ecx + 0x60], 1
mov esi, dword [edx + 4]
xor eax, eax
mov dword [esi + ecx + 0x74], eax
mov dword [esi + ecx + 0x78], eax
mov edx, dword [edx + 4]
mov dword [edx + ecx + 0x7c], eax
mov dword [esp + 0x5c], 0x5e2824
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x34], 0x5e2838
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x238], 8
cmp ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
jle 0x4046f7
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x74]
mov ebx, dword [ecx + eax*4]
lea ecx, [esi + 1]
cmp dword [ebx + 0x148], ecx
jne 0x4046a5
mov ecx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
lea edi, [esp + 0x1b0]
mov edx, dword [ecx + 4]
mov dword [edx + eax + 0x54], esi
mov esi, dword [ecx + 4]
add esi, eax
mov eax, dword [esp + 0xc]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dword [esp + 0x20c], eax
mov dword [esp + 0x210], 0
call fcn.0050b020
fld qword [eax]
fsub qword [ebx + 0x170]
mov ecx, ebx
fstp qword [esp + 0x214]
call fcn.0050b020
fld qword [eax + 8]
fsub qword [ebx + 0x178]
mov edx, dword [esp + 0xc8]
lea ecx, [esp + 0x1b0]
push ecx
push edx
lea ecx, [esp + 0xc8]
fstp qword [esp + 0x224]
call fcn.0040ccc0
mov eax, dword [esp + 0x64]
push ebx
push eax
lea ecx, [esp + 0x64]
call fcn.0040c9d0
mov ecx, dword [esp + 0x3c]
push ebx
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040c9d0
mov ecx, ebx
call fcn.004ed400
test al, al
je 0x40463b
mov dword [esp + 0x2c], ebx
jmp 0x40467f
mov edx, dword [ebx + 0x360]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x48]
test ecx, ecx
jne 0x404652
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40467f
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40467b
call fcn.0050b080
fstp qword [esp + 0x10c]
mov ecx, ebx
call fcn.0050b080
fcomp qword [esp + 0x10c]
fnstsw ax
test ah, 0x41
jne 0x40467f
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0xc]
mov eax, dword [eax + 8]
add eax, ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [edx + ecx*4]
mov dword [edx + 0x134], eax
mov eax, ecx
mov ecx, dword [esp + 0x78]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x404572
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4046e0
lea eax, [esp + 0x160]
push eax
call fcn.004ec230
lea ecx, [esp + 0x160]
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.004f0c90
add esp, 8
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4046f7
lea eax, [esp + 0xac]
push eax
call fcn.0050c570
jmp 0x40471c
push 0
lea ecx, [esp + 0xb0]
push 0
lea edx, [esp + 0x64]
push ecx
push edx
call fcn.00518430
add esp, 0x10
test al, al
je 0x40480e
mov esi, dword [esp + 0xc]
mov eax, dword [ebp + 0x38]
lea edx, [esp + 0xac]
push edx
mov ecx, dword [eax + 4]
lea edi, [ecx + esi*4]
call fcn.00402850
mov dword [edi], eax
mov eax, dword [esp + 0xb8]
mov edi, dword [esp + 0x18]
add esp, 4
lea ecx, [eax + 1]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov dword [edi + edx], ecx
mov ecx, dword [eax]
mov dword [edi + ecx + 8], esi
mov edx, dword [eax]
mov dword [edi + edx + 4], 0
mov dword [esp + 0x34], 0x5e2838
mov eax, dword [esp + 0x38]
mov byte [esp + 0x238], 0x12
test eax, eax
je 0x40477f
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ebx, 0x5e262c
mov dword [esp + 0x5c], 0x5e2824
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x60]
mov byte [esp + 0x238], 0x13
test eax, eax
je 0x4047a9
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc esi
add edx, 0x80
add edi, 0xc
cmp esi, eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edi
jl 0x4044e7
mov ebx, dword [esp + 0x10]
xor edi, edi
mov dword [esp + 0x5c], 0x5e2860
mov dword [esp + 0x60], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], edi
cmp ebx, edi
mov byte [esp + 0x238], 0x14
jne 0x404a08
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], edi
jmp 0x404a2a
lea ecx, [esp + 0x24]
call sub.mfc42u.dll_CString::CString_3
push 0x617b00
mov byte [esp + 0x23c], 9
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea ecx, [esp + 0x24]
push eax
call fcn.005c0e66
mov eax, dword [esp + 0x3c]
xor esi, esi
test eax, eax
jle 0x404873
mov eax, dword [esp + 0x38]
mov eax, dword [eax + esi*4]
lea ecx, [eax + 0x1b8]
call fcn.004b0a70
push eax
lea ecx, [esp + 0x28]
call sub.mfc42u.dll_CString::operator_1
push 0x617af8
lea ecx, [esp + 0x28]
call fcn.005c0e5a
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
jl 0x404840
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
call sub.mfc42u.dll_AfxMessageBox_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x238], 8
call sub.mfc42u.dll_CString::CString
mov edi, 0x5e2838
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x38]
mov byte [esp + 0x238], 0xa
test eax, eax
je 0x4048b4
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
mov dword [esp + 0x5c], 0x5e2824
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x60]
mov byte [esp + 0x238], 0xb
test eax, eax
je 0x4048de
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0xc0], 0x5e2874
mov eax, dword [esp + 0xc4]
mov byte [esp + 0x238], 0xc
test eax, eax
je 0x404909
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0xc0], esi
mov dword [esp + 0xac], 0x5e27c0
mov eax, dword [esp + 0xb0]
mov byte [esp + 0x238], 0xd
test eax, eax
je 0x404937
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0xac], esi
mov dword [esp + 0x98], 0x5e27fc
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x238], 0xe
test eax, eax
je 0x404965
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x98], esi
mov dword [esp + 0x70], edi
mov eax, dword [esp + 0x74]
mov byte [esp + 0x238], 0xf
test eax, eax
je 0x404989
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x70], esi
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x238], 0x10
test eax, eax
je 0x4049aa
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x48], esi
mov dword [esp + 0x84], edi
mov eax, dword [esp + 0x88]
mov byte [esp + 0x238], 0x11
test eax, eax
je 0x4049d1
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x160]
mov dword [esp + 0x84], esi
mov dword [esp + 0x238], 0xffffffff
call fcn.0042bd50
xor al, al
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
lea edx, [ebx + ebx*4]
shl edx, 4
push edx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x60], eax
push ebx
push eax
call fcn.0040ceb0
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0xc], edi
cmp dword [eax + 8], edi
jle 0x404fc7
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x3c]
shl eax, 7
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 0x38]
mov esi, dword [edx + edi*4]
mov edx, dword [ecx + 4]
mov eax, dword [esi + 0x1c]
cmp dword [edx + eax*4], 0
jne 0x404ebd
mov eax, 0x5e27c0
xor ebx, ebx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf0], ebx
mov ecx, esi
mov byte [esp + 0x238], 0x16
call fcn.004f04f0
test al, al
jne 0x404ca4
mov ecx, dword [esi + 0x364]
call fcn.004ae9a0
mov edi, eax
mov dword [esp + 0x14], ebx
cmp dword [edi + 8], ebx
jle 0x404bc5
mov eax, dword [edi + 4]
add eax, ebx
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x10c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x110], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x114], ecx
mov ecx, dword [esp + 0x10c]
cmp ecx, 6
jne 0x404bac
mov edx, eax
mov ecx, dword [edx]
mov dword [esp + 0x148], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x14c], ecx
fld dword [esp + 0x14c]
mov edx, dword [edx + 8]
fstp qword [esp + 0x34]
mov ecx, dword [eax]
mov dword [esp + 0x150], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x154], ecx
mov dword [esp + 0x15c], eax
fld dword [esp + 0x15c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x158], edx
fstp qword [esp + 0x3c]
push ecx
lea ecx, [esi + 0x2d0]
call fcn.004b8150
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0xec]
push edx
lea ecx, [esp + 0xe8]
call fcn.0040d0a0
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 8]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x404ae2
xor ebx, ebx
mov ecx, dword [esi + 0x364]
call fcn.004afa60
test eax, eax
jle 0x404ca4
mov ecx, dword [esi + 0x364]
push ebx
call fcn.004afa70
mov edi, eax
mov ecx, edi
call fcn.004b1ce0
cmp eax, 1
je 0x404c16
mov ecx, edi
call fcn.004b1ce0
cmp eax, 2
je 0x404c16
mov ecx, edi
call fcn.004b1ce0
cmp eax, 7
je 0x404c16
mov ecx, edi
call fcn.004b1ce0
cmp eax, 8
jne 0x404c90
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov dword [esp + 0x100], ecx
lea ecx, [esp + 0xfc]
mov dword [esp + 0xfc], eax
mov eax, dword [edi + 0xc]
push ecx
lea ecx, [esi + 0x2d0]
mov dword [esp + 0x108], edx
mov dword [esp + 0x10c], eax
call fcn.004b8150
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0x100]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x114]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x118]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x100]
push edx
lea ecx, [esp + 0xfc]
call fcn.0040d0a0
mov ecx, dword [esi + 0x364]
inc ebx
call fcn.004afa60
cmp ebx, eax
jl 0x404bd8
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x404cff
mov al, byte [esi + 0x20]
test al, al
je 0x404d60
mov edx, dword [esi + 0x360]
mov ecx, dword [edx + 0x18]
fld qword [ecx + 0x10]
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x40
je 0x404d36
fld qword [ecx + 0x18]
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x40
je 0x404d36
fld qword [ecx + 0x58]
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x40
je 0x404d36
fld qword [ebp + 0x1c]
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x40
je 0x404d36
mov ebx, dword [ebp + 0x38]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x364]
mov edx, dword [ebx + 4]
lea edi, [edx + ecx*4]
lea ecx, [esi + 0x2d0]
push ecx
push eax
call fcn.00402930
mov dword [edi], eax
mov ecx, dword [esi + 0x364]
add esp, 8
call fcn.004af210
mov eax, dword [eax + 8]
lea edx, [eax + 1]
jmp 0x404dad
lea edx, [esp + 0xac]
lea eax, [esp + 0xe8]
push edx
push eax
mov eax, dword [ebp + 0x20]
lea edx, [esp + 0xdc]
push edx
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [ecx + 0x5c]
mov ecx, dword [ecx + 0x58]
push edx
push eax
push ecx
jmp 0x404d80
lea edx, [esp + 0xac]
lea eax, [esp + 0xe8]
push edx
lea ecx, [esp + 0xd8]
push eax
push ecx
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.0050c580
mov ebx, dword [ebp + 0x38]
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0xac]
mov eax, dword [ebx + 4]
push ecx
lea edi, [eax + edx*4]
call fcn.00402850
mov dword [edi], eax
mov edx, dword [esp + 0xb8]
add esp, 4
inc edx
mov eax, dword [esi + 0x1c]
mov edi, dword [esp + 0x18]
mov ecx, dword [edi]
lea eax, [eax + eax*2]
mov dword [ecx + eax*4], edx
mov edx, dword [esi + 0x360]
mov eax, dword [edx + 0x18]
mov cl, byte [eax + 0x4c]
test cl, cl
je 0x404e17
mov eax, dword [esi + 0x1c]
mov edx, dword [edi]
lea ecx, [eax + eax*2]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ebx + 4]
push ecx
mov ecx, esi
mov eax, dword [edx + eax*4]
push eax
call fcn.004ebff0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x124], ecx
mov dword [esp + 0x128], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], edx
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x11c], eax
mov eax, dword [esi + 0x1c]
mov edx, dword [edi]
lea ecx, [eax + eax*2]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [edi]
lea edx, [esi + 0x2d0]
lea eax, [eax + eax*2]
push edx
mov edx, dword [esp + 0x64]
mov dword [ecx + eax*4 + 4], 1
mov eax, dword [esi + 0x1c]
lea ecx, [eax + eax*4]
shl ecx, 4
add ecx, edx
call fcn.004b7e20
mov edi, 0x5e27c0
mov dword [esp + 0xe8], edi
mov eax, dword [esp + 0xec]
mov byte [esp + 0x238], 0x17
test eax, eax
je 0x404e76
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ebx, 0x5e262c
mov dword [esp + 0xd4], edi
mov dword [esp + 0xe8], ebx
mov eax, dword [esp + 0xd8]
mov byte [esp + 0x238], 0x18
test eax, eax
je 0x404ea5
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov edi, dword [esp + 0xc]
mov dword [esp + 0xd4], ebx
mov ebx, dword [ebp + 0x3c]
mov byte [esp + 0x238], 0x14
jmp 0x404efb
lea eax, [esi + 0x2d0]
lea ecx, [esp + 0x160]
push eax
call fcn.004b7e30
mov eax, dword [esi + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x60]
shl ecx, 4
add ecx, eax
push ecx
lea ecx, [esp + 0x164]
call fcn.004b80e0
mov edx, dword [esi]
lea eax, [esp + 0x160]
push eax
mov ecx, esi
call dword [edx + 0x10]
mov ecx, dword [ebp + 0x2c]
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 4]
mov edx, dword [edx + edi*4]
mov dword [edx + 0x134], eax
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
add eax, edx
mov edx, dword [ecx + edi*4]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.00402bd0
mov ecx, dword [esi + 0x360]
add esp, 0xc
mov eax, dword [ecx + 0x18]
mov cl, byte [eax + 0x4c]
test cl, cl
je 0x404fa1
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
lea edx, [eax + eax*2]
mov edx, dword [ecx + edx*4]
mov ecx, dword [ebp + 0x38]
push edx
mov edx, dword [ecx + 4]
mov ecx, esi
mov eax, dword [edx + eax*4]
push eax
call fcn.004ebff0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x124], ecx
mov dword [esp + 0x128], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x12c], ecx
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x130], edx
lea edx, [esp + 0x11c]
mov eax, dword [ecx + 8]
push edx
push eax
mov dword [esp + 0x124], edi
call fcn.0040d2d0
mov eax, dword [ebp + 0x2c]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
add edx, 0x80
mov ecx, dword [eax + 8]
mov dword [esp + 0xc], edi
cmp edi, ecx
mov dword [esp + 0x10], edx
jl 0x404a48
jmp 0x404fca
mov ebx, dword [ebp + 0x3c]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
cmp edx, eax
mov dword [esp + 0xc], edx
jge 0x40511e
mov ecx, edx
lea eax, [edx*4]
shl ecx, 7
mov dword [esp + 0x10], eax
xor esi, esi
jmp 0x404ff7
mov edx, dword [esp + 0x1c]
xor esi, esi
mov eax, dword [esp + 0x10]
shl edx, 2
sub eax, edx
mov edx, dword [ebp + 0x2c]
mov edx, dword [edx + 4]
mov edi, dword [eax + edx]
mov eax, dword [ebp + 8]
cmp eax, esi
jne 0x40507b
cmp dword [edi + 0x1b0], 2
je 0x40507b
mov eax, dword [edi + 0x360]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x48], esi
jne 0x40502c
cmp dword [ebp + 0x10], esi
je 0x40507b
mov eax, dword [ebp + 0x30]
mov edx, dword [edi + 0x14]
mov eax, dword [eax + 4]
mov edx, dword [eax + edx*4]
cmp dword [edx + 0x1b0], 2
jne 0x40505c
mov eax, dword [ebx + 4]
mov dword [eax + ecx + 0x38], esi
mov edx, dword [ebx + 4]
mov dword [edx + ecx + 0x2c], esi
mov eax, dword [ebx + 4]
mov dword [eax + ecx + 0x3c], 0xffffffff
jmp 0x40507b
mov edx, dword [ebx + 4]
lea eax, [edx + ecx + 0x2c]
mov edx, dword [edx + ecx + 0x2c]
cmp edx, esi
jne 0x405071
mov dword [eax], 3
mov eax, dword [ebx + 4]
mov edx, dword [edi + 0x14]
mov dword [eax + ecx + 0x3c], edx
mov edx, dword [edi + 0x1b0]
mov eax, 2
cmp edx, eax
je 0x4050e7
cmp dword [ebp + 0x18], esi
je 0x4050e7
mov edx, dword [ebp + 0x30]
mov eax, dword [edi + 0x14]
mov esi, dword [ebx + 4]
mov edx, dword [edx + 4]
add esi, ecx
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 0x18]
cdq
xor eax, edx
sub eax, edx
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4050bf
mov edx, dword [ebx + 4]
mov dword [edx + ecx + 0x58], 0
jmp 0x4050f5
mov edx, dword [ebp + 0x30]
mov eax, dword [edi + 0x14]
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov edx, dword [eax + 0x18]
test edx, edx
jle 0x4050b2
mov edx, dword [edi + 0x360]
mov eax, dword [edx + 0x18]
mov edx, dword [ebx + 4]
mov eax, dword [eax + 0x40]
mov dword [edx + ecx + 0x58], eax
jmp 0x4050f5
mov edx, dword [ebx + 4]
mov dword [edx + ecx + 0x54], eax
mov eax, dword [ebx + 4]
mov dword [eax + ecx + 0x58], esi
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov edx, dword [ebx + 8]
inc eax
add edi, 4
add ecx, 0x80
cmp eax, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
jl 0x404ff1
mov edx, dword [esp + 0x1c]
test edx, edx
jle 0x40521d
xor ecx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 4]
mov esi, dword [esp + 0x74]
lea eax, [edx + ecx]
mov edx, dword [edx + ecx + 0x54]
mov esi, dword [esi + edx*4]
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4051a7
mov edx, dword [esi + 0x360]
mov edx, dword [edx + 0x18]
mov edi, dword [edx + 0x48]
test edi, edi
jne 0x40515b
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4051a7
mov edi, dword [ebp + 0x30]
mov edx, dword [esi + 0x14]
mov edi, dword [edi + 4]
mov edx, dword [edi + edx*4]
cmp dword [edx + 0x1b0], 2
jne 0x40518f
mov dword [eax + 0x38], 0
mov eax, dword [ebx + 4]
mov dword [eax + ecx + 0x2c], 0
mov edx, dword [ebx + 4]
mov dword [edx + ecx + 0x3c], 0xffffffff
jmp 0x4051a7
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40519d
mov dword [eax + 0x2c], 3
mov eax, dword [ebx + 4]
mov edx, dword [esi + 0x14]
mov dword [eax + ecx + 0x3c], edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4051f2
mov edx, dword [ebp + 0x30]
mov eax, dword [esi + 0x14]
mov edi, dword [ebx + 4]
mov edx, dword [edx + 4]
add edi, ecx
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 0x18]
cdq
xor eax, edx
sub eax, edx
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x30]
mov edx, dword [esi + 0x14]
mov eax, dword [eax + 4]
mov edx, dword [eax + edx*4]
mov eax, dword [edx + 0x18]
test eax, eax
jle 0x4051fd
mov eax, dword [esi + 0x360]
mov edx, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x40]
mov dword [edx + ecx + 0x58], eax
jmp 0x405208
mov eax, dword [ebx + 4]
mov dword [eax + ecx + 0x54], 2
mov edx, dword [ebx + 4]
mov dword [edx + ecx + 0x58], 0
mov eax, dword [esp + 0x14]
add ecx, 0x80
dec eax
mov dword [esp + 0x14], eax
jne 0x40512c
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x40]
xor ebx, ebx
cmp eax, ebx
je 0x40540e
mov esi, dword [ebp + 0x3c]
mov eax, dword [esi + 8]
imul eax, eax
cdq
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x405243
mov dword [edi + 0x10], eax
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x405256
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [edi + 4], ebx
mov edx, dword [esp + 0x1c]
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
mov ecx, dword [esi + 8]
cmp edx, ecx
mov dword [esp + 0xc], edx
jge 0x4053fe
mov ebx, dword [ebp + 0x2c]
lea eax, [edx*4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
lea esi, [edx*4]
sub eax, esi
mov esi, dword [ebx + 4]
mov eax, dword [eax + esi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
jge 0x40535e
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp + 0x3c]
add ecx, 4
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
lea ecx, [edx*4]
sub eax, ecx
mov ecx, dword [ebx + 4]
mov eax, dword [eax + ecx]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x360]
mov ecx, dword [ecx + 0x360]
mov eax, dword [eax + 0x18]
mov ecx, dword [ecx + 0x18]
fld qword [eax + 0x10]
fadd qword [ecx + 0x10]
fadd qword [eax + 0x18]
fadd qword [ecx + 0x18]
fmul qword [0x5e2790]
fst qword [esp + 0x3c]
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x40
jne 0x40533d
mov esi, dword [edi + 8]
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.0054a8d0
mov eax, dword [edi + 4]
mov edx, dword [esp + 0xc]
shl esi, 4
mov ecx, dword [esp + 0x3c]
add esi, eax
mov eax, dword [esp + 0x18]
mov dword [esi], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x1c]
mov esi, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add ecx, 4
inc eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 8]
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4052b7
jmp 0x405361
mov esi, dword [ebp + 0x3c]
test edx, edx
mov dword [esp + 0x18], 0
jle 0x4053de
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x360]
mov eax, dword [ecx + 0x18]
fld qword [eax + 0x10]
fadd qword [eax + 0x18]
fmul qword [0x5e2790]
fst qword [esp + 0x3c]
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x40
jne 0x4053d1
mov esi, dword [edi + 8]
push 0xffffffffffffffff
mov ecx, edi
lea edx, [esi + 1]
push edx
call fcn.0054a8d0
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x18]
shl esi, 4
mov edx, dword [esp + 0x3c]
add esi, eax
mov eax, dword [esp + 0xc]
mov dword [esi], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
mov esi, dword [ebp + 0x3c]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x40536d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
add ecx, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 8]
cmp eax, ecx
jl 0x40527d
jmp 0x405401
mov ebx, dword [ebp + 0x2c]
xor eax, eax
test edx, edx
jle 0x405418
inc eax
cmp eax, edx
jl 0x405407
jmp 0x405418
mov ebx, dword [ebp + 0x2c]
mov edx, dword [esp + 0x1c]
mov esi, dword [ebp + 0x3c]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4054b6
mov eax, dword [esi + 8]
mov dword [esp + 0xc], edx
cmp edx, eax
jge 0x4054b6
shl edx, 2
mov eax, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 4]
sub eax, edx
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x360]
mov eax, dword [eax + 0x18]
fld qword [eax + 0x30]
fst qword [esp + 0x3c]
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x40
jne 0x40549d
mov esi, dword [edi + 8]
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.0054a8d0
mov eax, dword [edi + 4]
mov edx, dword [esp + 0xc]
shl esi, 4
add esi, eax
mov ecx, dword [esp + 0x40]
or eax, 0xffffffff
mov dword [esi], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov esi, dword [ebp + 0x3c]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
inc ecx
add eax, 4
cmp ecx, dword [esi + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
jl 0x40543f
mov eax, dword [esi + 8]
xor ecx, ecx
test eax, eax
jle 0x4054e3
xor eax, eax
or edx, 0xffffffff
mov edi, dword [esi + 4]
inc ecx
mov dword [edi + eax + 0x5c], edx
mov edi, dword [esi + 4]
mov dword [edi + eax + 0x60], 0
mov edi, dword [esi + 8]
add eax, 0x80
cmp ecx, edi
jl 0x4054c4
mov edx, dword [esp + 0x30]
lea ecx, [edx + 0x2e0]
call fcn.004dafd0
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x78]
lea esi, [ecx + eax]
mov eax, dword [esp + 0x50]
add esi, eax
mov dword [esp + 0x14], esi
jne 0x40552c
mov eax, dword [ebx + 4]
xor esi, esi
cmp eax, esi
je 0x405521
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 4], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x40561e
mov edx, dword [ebx + 4]
test edx, edx
jne 0x405567
lea edi, [esi*4]
push edi
call sub.mfc42u.dll_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x40561e
mov ecx, dword [ebx + 0xc]
cmp esi, ecx
jg 0x405588
mov eax, dword [ebx + 8]
cmp esi, eax
jle 0x405580
mov ecx, esi
lea edi, [edx + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 8], esi
jmp 0x40561e
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4055b3
mov eax, dword [ebx + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4055a7
mov eax, 4
jmp 0x4055b3
cmp eax, 0x400
jle 0x4055b3
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x10], eax
jl 0x4055c1
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
lea ecx, [eax*4]
push ecx
call sub.mfc42u.dll_operatornew
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x30], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 8]
mov esi, dword [esp + 0x18]
mov ecx, esi
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
push eax
call sub.mfc42u.dll_operatordelete
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
jle 0x405642
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x7fc]
mov esi, dword [ebx + 4]
mov ecx, dword [ecx + eax*4]
mov dword [esi + eax*4], ecx
mov ecx, dword [ebx + 8]
inc eax
cmp eax, ecx
jl 0x40562b
mov dword [esp + 0x5c], 0x5e2860
mov ebx, dword [esp + 0x60]
mov byte [esp + 0x238], 0x19
test ebx, ebx
je 0x40567c
mov eax, dword [esp + 0x64]
mov esi, ebx
test eax, eax
je 0x405673
lea edi, [eax]
mov ecx, esi
call fcn.0042bd50
add esi, 0x50
dec edi
jne 0x405666
push ebx
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0xc0], 0x5e2874
mov eax, dword [esp + 0xc4]
mov byte [esp + 0x238], 0x1a
test eax, eax
je 0x4056a3
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
mov dword [esp + 0xac], 0x5e27c0
mov dword [esp + 0xc0], esi
mov eax, dword [esp + 0xb0]
mov byte [esp + 0x238], 0x1b
test eax, eax
je 0x4056d6
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0xac], esi
mov dword [esp + 0x98], 0x5e27fc
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x238], 0x1c
test eax, eax
je 0x405704
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov edi, 0x5e2838
mov dword [esp + 0x98], esi
mov dword [esp + 0x70], edi
mov eax, dword [esp + 0x74]
mov byte [esp + 0x238], 0x1d
test eax, eax
je 0x40572d
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x70], esi
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x238], 0x1e
test eax, eax
je 0x40574e
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x48], esi
mov dword [esp + 0x84], edi
mov eax, dword [esp + 0x88]
mov byte [esp + 0x238], 0x1f
test eax, eax
je 0x405775
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x160]
mov dword [esp + 0x84], esi
mov dword [esp + 0x238], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x230]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x40