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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42ef83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x400
push ebx
push ebp
mov ebp, ecx
xor eax, eax
push esi
push edi
mov ecx, dword [ebp + 0x1c8]
mov dword [esp + 0x60], ebp
cmp ecx, eax
jne 0x40be6b
xor ebx, ebx
jmp 0x40be76
mov ebx, dword [ebp + 0x1cc]
sub ebx, ecx
sar ebx, 2
mov cl, byte [esp + 0x13]
mov dword [esp + 0x9c], ebx
mov byte [esp + 0xc4], cl
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
lea edx, [esp + 0x13]
lea ecx, [esp + 0xd4]
push edx
mov dword [esp + 0x41c], eax
call fcn.00411690
lea ecx, [esp + 0xe4]
call fcn.00408e40
lea ecx, [esp + 0x1f0]
mov dword [esp + 0x418], 1
call fcn.00408140
lea ecx, [esp + 0x144]
call fcn.00406480
lea ecx, [esp + 0x1c8]
call fcn.00401f30
lea ecx, [esp + 0x230]
call fcn.004055b0
mov cl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
mov byte [esp + 0x79], cl
lea ecx, [esp + 0x78]
mov byte [esp + 0x418], 4
mov byte [esp + 0x78], al
mov byte [esp + 0x80], 0
call fcn.00417870
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x88]
mov byte [esp + 0x418], 5
mov byte [esp + 0x88], dl
mov byte [esp + 0x89], al
mov byte [esp + 0x90], 0
call fcn.00418080
mov ecx, dword [ebp + 0x1b8]
mov eax, dword [ebp + 0x1bc]
lea esi, [ebp + 0x1b4]
push ecx
push eax
push eax
mov byte [esp + 0x424], 6
call fcn.00418e00
add esp, 0xc
mov edi, eax
mov eax, dword [esi + 8]
mov ecx, esi
push eax
push edi
call fcn.00415630
lea ecx, [esp + 0x26c]
mov dword [esi + 8], edi
call fcn.00404c40
mov edi, eax
mov eax, dword [esi + 4]
mov byte [esp + 0x418], 7
test eax, eax
jne 0x40bfae
xor edx, edx
jmp 0x40bfc6
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x9c09c09d
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, ebx
jae 0x40bfec
mov edx, dword [esi + 8]
push edi
mov ecx, esi
mov dword [esp + 0x58], edx
call fcn.00411ab0
mov edx, dword [esp + 0x58]
mov ecx, ebx
sub ecx, eax
push ecx
push edx
mov ecx, esi
call fcn.00414d50
jmp 0x40c018
mov ecx, esi
call fcn.00411ab0
cmp ebx, eax
jae 0x40c018
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
lea eax, [ebx*8]
sub eax, ebx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
push ecx
mov ecx, esi
call fcn.00415150
lea ecx, [esp + 0x3e0]
mov byte [esp + 0x418], 0xd
call fcn.00401380
lea ecx, [esp + 0x3d0]
call fcn.0041a550
lea ecx, [esp + 0x38c]
call fcn.00401380
lea ecx, [esp + 0x37c]
mov byte [esp + 0x418], 0xb
call fcn.00411730
lea ecx, [esp + 0x33c]
call fcn.00401380
lea edx, [esp + 0x2fc]
mov dword [esp + 0x4c], edx
lea ecx, [esp + 0x32c]
mov byte [esp + 0x418], 0xe
call fcn.00411370
lea ecx, [esp + 0x2fc]
call fcn.00401380
lea ecx, [esp + 0x2ac]
call fcn.00404d40
lea ecx, [esp + 0x26c]
mov byte [esp + 0x418], 6
call fcn.00401380
xor edi, edi
lea ecx, [ebp + 0x110]
mov dword [ebp + 0x108], edi
mov dword [ebp + 0x10c], edi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
push eax
push edx
call fcn.00413370
test ebx, ebx
mov dword [esp + 0x68], edi
jle 0x40d1df
jmp 0x40c0e6
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp + 0x1c8]
mov esi, dword [ebp + 0x1b8]
mov ebx, dword [eax + edi*4]
lea eax, [edi*8]
sub eax, edi
mov ecx, ebx
mov dword [esp + 0x50], ebx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea esi, [esi + eax*4]
mov dword [esp + 0x54], esi
call fcn.0040d570
mov ebp, eax
mov ecx, ebx
mov dword [esp + 0x6c], ebp
call fcn.0040d580
add ebx, 0x24
lea ecx, [esi + 0x90]
push ebx
mov dword [esp + 0x2c], eax
mov dword [esi + 0x74], 0x186a0
mov dword [esi + 0x78], ebp
call fcn.0040ace0
add ebx, 0x30
lea ecx, [esi + 0xc0]
push ebx
call fcn.004113c0
mov cx, word [esp + 0x28]
mov dword [esi + 0x100], 0x186a0
test edi, edi
mov word [esi + 0x108], 0x3e8
mov dword [esi + 0x104], ebp
mov word [esi + 0x10a], cx
jle 0x40c181
and word [esi + 0x150], 0xfdff
mov dl, byte [esp + 0x13]
xor eax, eax
lea ebx, [esi + 0x110]
mov byte [esp + 0x164], dl
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], eax
lea eax, [esp + 0x26]
lea ecx, [esp + 0x174]
push eax
mov byte [esp + 0x41c], 0xf
call fcn.00411690
lea ecx, [esp + 0x184]
call fcn.00408e40
mov edi, ebp
mov byte [esp + 0x418], 0x10
and edi, 0x8000001f
jns 0x40c1e5
dec edi
or edi, 0xffffffe0
inc edi
mov eax, ebp
neg edi
cdq
sbb edi, edi
and edx, 0x1f
add eax, edx
neg edi
sar eax, 5
add edi, eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x40c203
xor edx, edx
jmp 0x40c219
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, edi
jae 0x40c244
mov edx, dword [ebx + 8]
lea eax, [esp + 0x164]
push eax
mov ecx, ebx
mov dword [esp + 0x20], edx
call fcn.00411770
mov ecx, dword [esp + 0x20]
sub edi, eax
push edi
push ecx
mov ecx, ebx
call fcn.00414910
jmp 0x40c267
mov ecx, ebx
call fcn.00411770
cmp edi, eax
jae 0x40c267
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
lea edi, [edi + edi*4]
push eax
lea edx, [edi + edi*4]
lea eax, [ecx + edx*4]
mov ecx, ebx
push eax
call fcn.00414c70
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x418], 0x12
call fcn.0041a550
lea ecx, [esp + 0x184]
call fcn.00401380
lea ecx, [esp + 0x174]
mov byte [esp + 0x418], 0x11
call fcn.004116b0
lea ecx, [esp + 0x164]
mov byte [esp + 0x418], 6
call fcn.00411640
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x74], eax
jle 0x40d097
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x70]
and ecx, 0x8000001f
jns 0x40c2d6
dec ecx
or ecx, 0xffffffe0
inc ecx
jne 0x40c2f7
mov ecx, dword [esp + 0x74]
mov eax, ecx
inc ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 0x114]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea edi, [ecx + edx*4 + 0x10]
mov dword [esp + 0x70], edi
mov eax, dword [edi + 4]
mov byte [esp + 0x27], 1
test eax, eax
je 0x40c313
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
cmp ecx, 0x3e8
jae 0x40c366
push 0xfa0
call sub.MFC42u.DLL_operatornew
mov edx, dword [edi + 8]
add esp, 4
mov ebx, eax
mov eax, dword [edi + 4]
push ebx
push edx
push eax
mov ecx, edi
call fcn.00415920
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push ecx
push edx
mov ecx, edi
call fcn.004148c0
mov eax, dword [edi + 4]
push eax
call sub.MFC42u.DLL_operatordelete
lea eax, [ebx + 0xfa0]
add esp, 4
mov ecx, edi
mov dword [edi + 0xc], eax
call fcn.00411710
lea ecx, [ebx + eax*4]
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x40d082
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x50]
push edx
push eax
call fcn.0040d980
mov edi, eax
mov ecx, edi
mov dword [esp + 0x58], edi
call fcn.0040e930
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x74]
cmp eax, 0x186a0
jne 0x40c427
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x78]
sub eax, ecx
lea ebp, [esi + 0x80]
dec eax
mov dword [esi + 0x74], ecx
cdq
and edx, 0x1f
mov dword [esi + 0x100], ecx
add eax, edx
xor ecx, ecx
mov ebx, eax
mov eax, dword [ebp + 4]
sar ebx, 5
inc ebx
cmp eax, ecx
mov dword [esp + 0x1c], ecx
je 0x40c3e2
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ecx, ebx
jae 0x40c40a
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x1c]
mov dword [esp + 0x5c], ecx
push edx
mov ecx, ebp
call fcn.00411710
sub ebx, eax
mov eax, dword [esp + 0x60]
push ebx
push eax
mov ecx, ebp
call fcn.00412520
jmp 0x40c427
mov ecx, ebp
call fcn.00411710
cmp ebx, eax
jae 0x40c427
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ecx + ebx*4]
push ecx
mov ecx, ebp
call fcn.00412730
cmp word [esi + 0x108], 0x3e8
jne 0x40c43e
mov dx, word [esp + 0x18]
mov word [esi + 0x108], dx
mov al, byte [esp + 0x27]
test al, al
je 0x40c4ac
mov eax, dword [esp + 0x74]
add esi, 0x110
lea ecx, [esp + 0x1f0]
mov esi, dword [esi + 4]
lea eax, [eax + eax*4]
push ecx
push 1
lea eax, [eax + eax*4]
lea esi, [esi + eax*4 - 0x64]
mov ecx, esi
mov eax, dword [esi + 8]
push eax
call fcn.004167a0
mov eax, dword [esi + 8]
mov dx, word [esp + 0x20]
mov cx, word [esp + 0x28]
add esi, 0x54
mov word [eax - 0x10], dx
mov eax, dword [esi - 0x4c]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov word [eax - 0xc], cx
mov eax, dword [esi + 8]
push edx
push 1
push eax
mov ecx, esi
call fcn.00412cd0
mov byte [esp + 0x27], 0
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x40c4c3
mov ecx, eax
call fcn.00408470
jmp 0x40c4c5
xor eax, eax
test eax, eax
mov dword [esp + 0x64], eax
je 0x40c4cf
inc dword [eax]
mov esi, dword [esp + 0x70]
lea ecx, [esp + 0x64]
push ecx
push 1
mov eax, dword [esi + 8]
mov ecx, esi
push eax
mov byte [esp + 0x424], 0x13
call fcn.00416ab0
mov eax, dword [esp + 0x64]
mov byte [esp + 0x418], 6
test eax, eax
je 0x40c51f
mov ecx, dword [eax]
dec ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
cmp dword [ecx], 0
jne 0x40c51f
test ecx, ecx
mov ebx, ecx
je 0x40c51f
call fcn.00408490
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x40c52a
xor eax, eax
jmp 0x40c532
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
xor edx, edx
mov ebx, 0x3e8
div ebx
test edx, edx
jne 0x40c5c8
test ecx, ecx
jne 0x40c54b
xor eax, eax
jmp 0x40c553
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
test ecx, ecx
lea ebp, [eax + 0x3e8]
jne 0x40c561
xor eax, eax
jmp 0x40c569
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
cmp eax, ebp
jae 0x40c5c8
test ebp, ebp
mov eax, ebp
jge 0x40c575
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esi + 4]
add esp, 4
mov ebx, eax
mov eax, dword [esi + 8]
push ebx
push eax
push ecx
mov ecx, esi
call fcn.00415920
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.004148c0
mov eax, dword [esi + 4]
push eax
call sub.MFC42u.DLL_operatordelete
lea ecx, [ebx + ebp*4]
add esp, 4
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.00411710
lea edx, [ebx + eax*4]
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
mov esi, dword [esi + 8]
mov eax, dword [esp + 0x14]
cmp eax, 5
mov esi, dword [esi - 4]
ja case.default.0x40c5db
jmp dword [eax*4 + 0x40d3e8]
mov eax, dword [esp + 0x18]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x28]
cmp ebx, eax
jge 0x40c62a
mov ecx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [esp + 0x58]
call fcn.0040d980
mov ebp, eax
mov ecx, ebp
call fcn.0040e930
test eax, eax
je 0x40c62a
mov ecx, ebp
call fcn.0040e930
mov ecx, edi
mov ebp, eax
call fcn.0040e930
cmp ebp, eax
jne 0x40c62a
mov eax, dword [esp + 0x28]
inc ebx
cmp ebx, eax
jl 0x40c5f1
mov ebp, dword [esp + 0x18]
lea eax, [ebp + 1]
cmp ebx, eax
jle 0x40c734
push 0xbd
mov ecx, esi
call fcn.00408620
mov edx, dword [esi + 8]
mov ax, word [esp + 0x20]
mov edi, ebp
mov word [edx + 0x30], ax
mov ecx, dword [esi + 8]
lea edx, [ebx - 1]
mov word [ecx + 0x32], di
mov eax, dword [esi + 8]
lea ecx, [esp + 0x154]
mov word [eax + 0x44], dx
call fcn.00406480
mov ebp, ebx
sub ebp, edi
mov edi, dword [esi + 8]
add edi, 0x34
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x40c685
xor edx, edx
jmp 0x40c68d
mov edx, dword [edi + 8]
sub edx, ecx
sar edx, 3
cmp edx, ebp
jae 0x40c6b1
mov ecx, dword [edi + 8]
push eax
mov dword [esp + 0x20], ecx
mov ecx, edi
call fcn.00411620
mov edx, dword [esp + 0x20]
sub ebp, eax
push ebp
push edx
mov ecx, edi
call fcn.00414590
jmp 0x40c6ce
mov ecx, edi
call fcn.00411620
cmp ebp, eax
jae 0x40c6ce
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
lea eax, [ecx + ebp*8]
mov ecx, edi
push eax
call fcn.00414850
cmp dword [esp + 0x18], ebx
jge 0x40c72b
xor edi, edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x54]
push edx
call fcn.0040d980
mov ebp, eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x1c], ecx
mov ecx, ebp
call fcn.0040ead0
push eax
call fcn.00409b10
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [edx + edi + 4], eax
mov eax, dword [esi + 8]
mov ebp, dword [ebp + 0x34]
add edi, 8
mov eax, dword [eax + 0x38]
mov word [eax + edi - 8], bp
mov eax, dword [esp + 0x18]
inc eax
cmp eax, ebx
mov dword [esp + 0x18], eax
jl 0x40c6d6
dec dword [esp + 0x18]
jmp case.default.0x40c5db
push 0x27e
mov ecx, esi
call fcn.00408620
mov ecx, dword [esi + 8]
mov dx, word [esp + 0x20]
mov word [ecx + 0x30], dx
mov eax, dword [esi + 8]
mov ecx, edi
mov word [eax + 0x32], bp
call fcn.0040ead0
push eax
call fcn.00409b10
add esp, 4
jmp 0x40c95c
mov ecx, edi
call fcn.0040eaf0
sub esp, 8
fstp qword [esp]
call fcn.00409b20
mov ebp, dword [esp + 0x20]
mov byte [esp + 0x2d], al
mov eax, dword [esp + 0x30]
add esp, 8
lea ebx, [ebp + 1]
cmp ebx, eax
jge 0x40c7fe
jmp 0x40c796
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x50]
push ebx
push eax
call fcn.0040d980
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.0040e930
test eax, eax
je 0x40c7fe
mov ecx, dword [esp + 0x14]
call fcn.0040e930
mov edx, eax
mov ecx, edi
mov dword [esp + 0x1c], edx
call fcn.0040e930
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x40c7fa
mov ecx, dword [esp + 0x14]
call fcn.0040eaf0
sub esp, 8
fstp qword [esp]
call fcn.00409b20
mov cl, byte [esp + 0x2d]
add esp, 8
cmp cl, al
jne 0x40c7fa
mov eax, dword [esp + 0x28]
inc ebx
cmp ebx, eax
jl 0x40c792
mov edi, dword [esp + 0x58]
lea eax, [ebp + 1]
cmp ebx, eax
mov al, byte [esp + 0x25]
jle 0x40c924
test al, al
je 0x40c971
push 0xbd
mov ecx, esi
call fcn.00408620
mov edx, dword [esi + 8]
mov ax, word [esp + 0x20]
mov word [edx + 0x30], ax
mov ecx, dword [esi + 8]
lea edx, [ebx - 1]
mov word [ecx + 0x32], bp
mov eax, dword [esi + 8]
lea ecx, [esp + 0x15c]
mov word [eax + 0x44], dx
call fcn.00406480
mov edi, dword [esi + 8]
mov ecx, ebx
sub ecx, ebp
add edi, 0x34
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x40c863
xor edx, edx
jmp 0x40c86b
mov edx, dword [edi + 8]
sub edx, ecx
sar edx, 3
cmp edx, dword [esp + 0x14]
jae 0x40c895
mov ecx, dword [edi + 8]
push eax
mov dword [esp + 0x20], ecx
mov ecx, edi
call fcn.00411620
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
sub ecx, eax
push ecx
push edx
mov ecx, edi
call fcn.00414590
jmp 0x40c8b8
mov ecx, edi
call fcn.00411620
cmp dword [esp + 0x14], eax
jae 0x40c8b8
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [ecx + eax*8]
push ecx
mov ecx, edi
call fcn.00414850
cmp ebp, ebx
jge 0x40c91a
xor edi, edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x50]
push edx
push eax
call fcn.0040d980
mov ecx, dword [esi + 8]
mov ebp, eax
mov edx, dword [ecx + 0x38]
mov ecx, ebp
mov dword [esp + 0x1c], edx
call fcn.0040eaf0
sub esp, 8
fstp qword [esp]
call fcn.00409ab0
mov ecx, dword [esp + 0x24]
add esp, 8
mov dword [ecx + edi + 4], eax
mov edx, dword [esi + 8]
mov ebp, dword [ebp + 0x34]
add edi, 8
mov eax, dword [edx + 0x38]
mov word [eax + edi - 8], bp
mov eax, dword [esp + 0x18]
inc eax
cmp eax, ebx
mov dword [esp + 0x18], eax
jl 0x40c8be
mov ebp, eax
dec ebp
mov dword [esp + 0x18], ebp
jmp case.default.0x40c5db
test al, al
je 0x40c971
push 0x27e
mov ecx, esi
call fcn.00408620
mov eax, dword [esi + 8]
mov cx, word [esp + 0x20]
mov word [eax + 0x30], cx
mov edx, dword [esi + 8]
mov ecx, edi
mov word [edx + 0x32], bp
call fcn.0040eaf0
sub esp, 8
fstp qword [esp]
call fcn.00409ab0
add esp, 8
mov ecx, dword [esi + 8]
mov dword [ecx + 0x38], eax
mov edx, dword [esi + 8]
mov edi, dword [edi + 0x34]
mov word [edx + 0x34], di
jmp case.default.0x40c5db
push 0x203
mov ecx, esi
call fcn.00408620
mov eax, dword [esi + 8]
mov cx, word [esp + 0x20]
mov word [eax + 0x30], cx
mov edx, dword [esi + 8]
mov ecx, edi
mov word [edx + 0x32], bp
call fcn.0040eaf0
mov eax, dword [esi + 8]
fstp qword [eax + 0x38]
jmp 0x40d05f
push 0xfd
mov ecx, esi
call fcn.00408620
mov edx, dword [esi + 8]
mov ax, word [esp + 0x20]
mov word [edx + 0x30], ax
mov ecx, dword [esi + 8]
mov dx, word [esp + 0x18]
mov word [ecx + 0x32], dx
mov ecx, edi
mov byte [esp + 0x13], 0
call fcn.0040eaa0
mov ebx, eax
mov al, byte [esp + 0x26]
inc ebx
mov byte [esp + 0x3c], al
mov eax, ebx
jns 0x40c9e3
xor eax, eax
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x40], eax
test ebx, ebx
mov ebp, eax
jbe 0x40ca18
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x13]
push ecx
push ebp
call fcn.00419840
mov eax, dword [esp + 0x1c]
add esp, 8
inc ebp
dec eax
mov dword [esp + 0x14], eax
jne 0x40c9fa
mov eax, dword [esp + 0x40]
add ebx, eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
push eax
mov ecx, edi
mov byte [esp + 0x41c], 0x14
call fcn.0040ea00
mov ecx, dword [esp + 0x44]
lea eax, [ecx - 1]
push eax
inc eax
push ecx
push eax
call fcn.00418bc0
mov eax, dword [esp + 0x50]
add esp, 0xc
lea ecx, [esp + 0x3c]
push eax
dec eax
push eax
call fcn.00414d40
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x44]
dec ecx
mov eax, dword [ebp + 0x108]
mov edx, dword [ebp + 0x10c]
inc eax
mov dword [esp + 0x44], ecx
mov dword [ebp + 0x108], eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x98]
push eax
push ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x1c], edx
call fcn.00415de0
mov eax, dword [eax]
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
je 0x40cab2
mov eax, dword [eax + 0x1c]
mov ebx, dword [esp + 0x14]
cmp eax, ebx
jae 0x40cab6
mov edx, dword [esi + 8]
mov dword [edx + 0x38], eax
jmp 0x40cc95
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xb0]
push eax
call fcn.0040f990
mov dword [esp + 0xc0], 0
lea ecx, [esp + 0xb0]
lea edx, [esp + 0x13c]
push ecx
push edx
lea ecx, [esp + 0x80]
mov byte [esp + 0x420], 0x15
call fcn.00415c90
mov edi, dword [eax]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x418], 0x14
call fcn.0041a550
lea ecx, [ebp + 0x110]
lea edx, [esp + 0x1c8]
mov dword [edi + 0x1c], ebx
push edx
mov eax, dword [ecx + 8]
push 1
push eax
call fcn.00413050
mov edi, dword [ebp + 0x114]
lea eax, [ebx + ebx*4]
shl eax, 3
mov dword [esp + 0x1c], eax
lea edi, [edi + eax + 0x10]
lea eax, [esp + 0x3c]
cmp edi, eax
je 0x40cc6b
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x40cb54
xor ebx, ebx
jmp 0x40cb5a
mov ebx, dword [esp + 0x44]
sub ebx, ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x40cb65
xor edx, edx
jmp 0x40cb6a
mov edx, dword [edi + 8]
sub edx, eax
cmp ebx, edx
ja 0x40cbb6
mov edx, dword [esp + 0x44]
cmp ecx, edx
je 0x40cb80
mov bl, byte [ecx]
mov byte [eax], bl
inc eax
inc ecx
cmp ecx, edx
jne 0x40cb76
mov ecx, dword [edi + 8]
push ecx
push eax
mov ecx, edi
call fcn.00414d40
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x40cba3
mov edx, dword [edi + 4]
xor eax, eax
add edx, eax
mov dword [edi + 8], edx
jmp 0x40cc6b
mov eax, dword [esp + 0x44]
mov edx, dword [edi + 4]
sub eax, ecx
add edx, eax
mov dword [edi + 8], edx
jmp 0x40cc6b
test ecx, ecx
jne 0x40cbbe
xor ebx, ebx
jmp 0x40cbc6
mov edx, dword [esp + 0x44]
sub edx, ecx
mov ebx, edx
test eax, eax
jne 0x40cbce
xor edx, edx
jmp 0x40cbd3
mov edx, dword [edi + 0xc]
sub edx, eax
cmp ebx, edx
ja 0x40cc17
test eax, eax
jne 0x40cbdf
xor edx, edx
jmp 0x40cbe4
mov edx, dword [edi + 8]
sub edx, eax
lea ebx, [edx + ecx]
push eax
push ebx
push ecx
call fcn.00418bc0
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x50]
add esp, 0xc
push eax
push ecx
push ebx
mov ecx, edi
call fcn.004124a0
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x40cba3
mov edx, dword [edi + 4]
xor eax, eax
add edx, eax
mov dword [edi + 8], edx
jmp 0x40cc6b
mov ecx, dword [edi + 8]
push ecx
push eax
mov ecx, edi
call fcn.00414d40
mov eax, dword [edi + 4]
push eax
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x44]
add esp, 4
test ecx, ecx
jne 0x40cc3b
xor eax, eax
jmp 0x40cc41
mov eax, dword [esp + 0x44]
sub eax, ecx
test eax, eax
jge 0x40cc47
xor eax, eax
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [edi + 4], eax
mov edx, dword [esp + 0x44]
mov ecx, edi
push eax
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.004124a0
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x114]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x58]
mov byte [eax + ecx + 0x20], 0
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov dword [edx + 0x38], eax
mov eax, dword [ebp + 0x10c]
inc eax
mov dword [ebp + 0x10c], eax
mov ecx, dword [esi + 8]
mov edi, dword [edi + 0x34]
mov byte [esp + 0x418], 6
mov word [ecx + 0x34], di
mov edx, dword [esp + 0x40]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
jmp case.default.0x40c5db
push 0xfd
mov ecx, esi
call fcn.00408620
mov eax, dword [esi + 8]
mov cx, word [esp + 0x20]
mov word [eax + 0x30], cx
mov edx, dword [esi + 8]
mov ax, word [esp + 0x18]
mov ecx, edi
mov word [edx + 0x32], ax
mov dword [esp + 0x4c], 0
call fcn.0040eaa0
mov cl, byte [esp + 0x26]
mov ebx, eax
inc ebx
mov byte [esp + 0x2c], cl
mov eax, ebx
jns 0x40cd0b
xor eax, eax
lea edx, [eax + eax]
push edx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
test ebx, ebx
mov ebp, eax
jbe 0x40cd45
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x4c]
push eax
push ebp
call fcn.00419860
mov eax, dword [esp + 0x1c]
add esp, 8
add ebp, 2
dec eax
mov dword [esp + 0x14], eax
jne 0x40cd25
mov eax, dword [esp + 0x30]
lea ebx, [eax + ebx*2]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push eax
mov ecx, edi
mov byte [esp + 0x41c], 0x16
call fcn.0040ea50
mov ecx, dword [esp + 0x34]
lea eax, [ecx - 2]
push eax
add eax, 2
push ecx
push eax
call fcn.00419030
mov eax, dword [esp + 0x40]
add esp, 0xc
lea ecx, [esp + 0x2c]
push eax
add eax, 0xfffffffe
push eax
call fcn.00414d40
mov ebx, dword [esp + 0x34]
sub ebx, 2
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x60]
mov edx, dword [ebx + 0x108]
lea ebp, [ebx + 0x110]
inc edx
mov dword [ebx + 0x108], edx
mov eax, dword [ebp + 4]
test eax, eax
jne 0x40cdb6
mov dword [esp + 0x14], eax
jmp 0x40cdd0
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x2c]
lea eax, [esp + 0xa0]
push edx
push eax
lea ecx, [esp + 0x90]
call fcn.00415fc0
mov eax, dword [eax]
mov ecx, dword [esp + 0x8c]
cmp eax, ecx
je 0x40ce0c
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jae 0x40ce0c
mov ecx, dword [esi + 8]
mov dword [ecx + 0x38], eax
jmp 0x40cfd7
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x128]
push edx
call fcn.0040feb0
mov dword [esp + 0x138], 0
lea eax, [esp + 0x128]
lea ecx, [esp + 0x14c]
push eax
push ecx
lea ecx, [esp + 0x90]
mov byte [esp + 0x420], 0x17
call fcn.00415e60
mov edi, dword [eax]
lea ecx, [esp + 0x128]
mov byte [esp + 0x418], 0x16
call fcn.0041a550
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c8]
mov dword [edi + 0x1c], edx
mov eax, dword [ebp + 8]
push ecx
push 1
push eax
mov ecx, ebp
call fcn.00413050
mov ebp, dword [esp + 0x14]
mov edi, dword [ebx + 0x114]
lea edx, [esp + 0x2c]
lea ebp, [ebp + ebp*4]
shl ebp, 3
add edi, ebp
mov dword [esp + 0x1c], ebp
cmp edi, edx
je 0x40cfb1
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x40ceaf
mov dword [esp + 0x5c], ecx
jmp 0x40cebb
mov eax, dword [esp + 0x34]
sub eax, ecx
sar eax, 1
mov dword [esp + 0x5c], eax
mov ecx, edi
call fcn.00410090
cmp dword [esp + 0x5c], eax
ja 0x40cf01
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
call fcn.00419030
mov ecx, dword [edi + 8]
add esp, 0xc
push ecx
push eax
mov ecx, edi
call fcn.00414d40
lea ecx, [esp + 0x2c]
call fcn.00410090
mov edx, dword [edi + 4]
lea eax, [edx + eax*2]
mov dword [edi + 8], eax
jmp 0x40cfb1
mov ecx, edi
call fcn.00412a50
lea ecx, [esp + 0x2c]
mov ebp, eax
call fcn.00410090
cmp eax, ebp
ja 0x40cf5d
mov ebp, dword [esp + 0x30]
mov ecx, edi
call fcn.00410090
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x30]
lea ebp, [ebp + eax*2]
push ecx
push ebp
push edx
call fcn.00419030
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x40]
add esp, 0xc
push eax
push ecx
push ebp
mov ecx, edi
call fcn.00412fc0
lea ecx, [esp + 0x2c]
call fcn.00410090
mov edx, dword [edi + 4]
lea eax, [edx + eax*2]
mov dword [edi + 8], eax
jmp 0x40cfad
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push ecx
push edx
mov ecx, edi
call fcn.00414d40
mov eax, dword [edi + 4]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.00410090
test eax, eax
jge 0x40cf87
xor eax, eax
add eax, eax
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00412fc0
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx + 0x114]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x58]
mov byte [eax + ebp + 0x20], 1
mov eax, dword [esi + 8]
mov dword [eax + 0x38], ecx
mov eax, dword [ebx + 0x10c]
inc eax
mov dword [ebx + 0x10c], eax
mov edx, dword [esi + 8]
mov edi, dword [edi + 0x34]
mov byte [esp + 0x418], 6
mov word [edx + 0x34], di
mov eax, dword [esp + 0x30]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
jmp case.default.0x40c5db
push 6
mov ecx, esi
call fcn.00408620
mov ecx, dword [esi + 8]
mov dx, word [esp + 0x20]
push esi
mov word [ecx + 0x30], dx
mov eax, dword [esi + 8]
mov cx, word [esp + 0x1c]
mov word [eax + 0x32], cx
mov edx, dword [esi + 8]
mov eax, dword [edi + 0x34]
mov ecx, edi
mov word [edx + 0x34], ax
call fcn.0040f5a0
jmp case.default.0x40c5db
push 0x201
mov ecx, esi
call fcn.00408620
mov eax, dword [esi + 8]
mov cx, word [esp + 0x18]
mov word [eax + 0x32], cx
mov edx, dword [esi + 8]
mov ax, word [esp + 0x20]
mov word [edx + 0x30], ax
mov ecx, dword [esi + 8]
mov edi, dword [edi + 0x34]
mov word [ecx + 0x34], di
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40c37a
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x6c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x40c2c1
mov eax, dword [esp + 0x6c]
xor ebx, ebx
xor ebp, ebp
cmp eax, ebx
jle 0x40d135
cmp dword [esp + 0x28], ebx
jle 0x40d128
mov ecx, dword [esp + 0x50]
push ebx
push ebp
call fcn.0040d980
mov edi, eax
cmp word [edi + 0x30], 1
ja 0x40d0c8
cmp word [edi + 0x32], 1
jbe 0x40d11d
lea ecx, [esp + 0xa4]
call fcn.00409890
mov ax, word [edi + 0x30]
mov di, word [edi + 0x32]
lea ecx, [esi + 0x164]
mov word [esp + 0xa8], bp
lea edx, [eax + ebp - 1]
lea eax, [edi + ebx - 1]
mov word [esp + 0xaa], dx
lea edx, [esp + 0xa4]
mov word [esp + 0xae], ax
mov eax, dword [ecx + 8]
push edx
push 1
push eax
mov word [esp + 0xb8], bx
call fcn.00416d50
mov eax, dword [esp + 0x28]
inc ebx
cmp ebx, eax
jl 0x40d0ad
xor ebx, ebx
mov eax, dword [esp + 0x6c]
inc ebp
cmp ebp, eax
jl 0x40d0a7
cmp dword [esi + 0x74], 0x186a0
jne 0x40d1b5
mov eax, dword [esi + 0x78]
lea ecx, [esi + 0x80]
dec eax
mov dword [esi + 0x74], ebx
cdq
and edx, 0x1f
mov dword [esi + 0x100], ebx
add eax, edx
mov edx, dword [ecx + 4]
sar eax, 5
inc eax
cmp edx, ebx
mov dword [esp + 0x54], ebx
jne 0x40d16a
xor edi, edi
jmp 0x40d172
mov edi, dword [ecx + 8]
sub edi, edx
sar edi, 2
cmp edi, eax
jae 0x40d199
cmp edx, ebx
jne 0x40d17e
xor edi, edi
jmp 0x40d186
mov edi, dword [ecx + 8]
sub edi, edx
sar edi, 2
mov edx, dword [ecx + 8]
lea ebp, [esp + 0x54]
sub eax, edi
push ebp
push eax
push edx
call fcn.00412520
jmp 0x40d1b5
cmp edx, ebx
je 0x40d1b5
mov edi, dword [ecx + 8]
mov ebp, edi
sub ebp, edx
sar ebp, 2
cmp eax, ebp
jae 0x40d1b5
lea eax, [edx + eax*4]
push edi
push eax
call fcn.00412730
cmp word [esi + 0x108], 0x3e8
jne 0x40d1c7
mov word [esi + 0x108], bx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x9c]
inc eax
cmp eax, ecx
mov dword [esp + 0x68], eax
jl 0x40c0de
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0xa0]
push ecx
push edx
lea ecx, [esp + 0x90]
mov byte [esp + 0x420], 5
call fcn.00415e90
mov eax, dword [eax]
lea ecx, [esp + 0x9c]
push eax
push ecx
lea ecx, [esp + 0x94]
call fcn.00415ea0
mov edx, dword [esp + 0x8c]
push edx
call sub.MFC42u.DLL_operatordelete
mov ebx, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
xor edi, edi
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x94], edi
call ebx
mov eax, dword [0x43c8d4]
dec eax
mov dword [0x43c8d4], eax
jne 0x40d267
mov eax, dword [0x43c8d0]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [0x43c8d0], edi
mov esi, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
lea ecx, [esp + 0x4c]
call esi
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0xa0]
push ecx
push edx
lea ecx, [esp + 0x80]
mov byte [esp + 0x420], 4
call fcn.00415e90
mov eax, dword [eax]
lea ecx, [esp + 0x9c]
push eax
push ecx
lea ecx, [esp + 0x84]
call fcn.00415cc0
mov edx, dword [esp + 0x7c]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], edi
call ebx
mov eax, dword [0x43c8cc]
dec eax
mov dword [0x43c8cc], eax
jne 0x40d2ea
mov eax, dword [0x43c8c8]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [0x43c8c8], edi
lea ecx, [esp + 0x4c]
call esi
lea ecx, [esp + 0x230]
call fcn.00401380
lea ecx, [esp + 0x1c8]
call fcn.00401f70
lea ecx, [esp + 0x1f0]
call fcn.00401380
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x418], 0x18
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xe4]
mov dword [esp + 0x11c], edi
mov dword [esp + 0x120], edi
mov dword [esp + 0x124], edi
call fcn.00401380
mov ebx, dword [esp + 0xdc]
mov esi, dword [esp + 0xd8]
cmp esi, ebx
je 0x40d378
push edi
mov ecx, esi
call fcn.0041b910
add esi, 4
cmp esi, ebx
jne 0x40d362
mov esi, dword [esp + 0xd8]
push esi
call sub.MFC42u.DLL_operatordelete
mov ebx, dword [esp + 0xd0]
mov esi, dword [esp + 0xcc]
add esp, 4
cmp esi, ebx
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe0], edi
mov dword [esp + 0x418], 0xffffffff
je 0x40d3c8
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx]
add esi, 0x40
cmp esi, ebx
jne 0x40d3b3
mov esi, dword [esp + 0xc8]
push esi
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x414]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret