Function at 0x40d9c0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42f0e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x1b8]
lea eax, [ecx*8]
sub eax, ecx
mov cl, byte [esp + 0x1f]
mov dword [esp + 0x84], edx
mov byte [esp + 0x2c], cl
lea eax, [eax + eax*2]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x70], eax
lea eax, [eax + edx + 0x110]
mov dword [esp + 0x80], eax
mov dl, byte [esp + 0x1f]
mov dword [esp + 0x150], ebx
mov byte [esp + 0x3c], dl
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
lea esi, [ebp + 0x10]
lea edi, [ebp + 0xc]
push esi
push edi
push eax
mov byte [esp + 0x15c], 1
call fcn.0040e7d0
add esp, 0xc
lea ecx, [esp + 0x88]
call fcn.0040e8f0
mov dword [esp + 0x24], eax
mov esi, dword [esi]
mov al, byte [esp + 0x1f]
mov byte [esp + 0x60], al
cmp esi, ebx
mov byte [esp + 0x150], 2
mov eax, esi
jge 0x40da92
xor eax, eax
shl eax, 6
push eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x64], eax
push ecx
push esi
push eax
lea ecx, [esp + 0x6c]
call fcn.004163e0
mov edx, dword [esp + 0x64]
shl esi, 6
add esi, edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
lea ecx, [esp + 0xc0]
mov byte [esp + 0x150], 6
call fcn.00411fc0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x150], 5
call fcn.0041a550
lea ecx, [esp + 0x98]
mov byte [esp + 0x150], 4
call fcn.0041a550
mov esi, dword [edi]
lea edi, [ebp + 0x14]
mov ecx, edi
call fcn.00411fa0
cmp eax, esi
jae 0x40db33
mov edx, dword [edi + 8]
lea eax, [esp + 0x60]
push eax
mov ecx, edi
mov dword [esp + 0x28], edx
call fcn.00411fa0
mov ecx, dword [esp + 0x28]
sub esi, eax
push esi
push ecx
mov ecx, edi
call fcn.00415960
jmp 0x40db52
mov ecx, edi
call fcn.00411fa0
cmp esi, eax
jae 0x40db52
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
shl esi, 4
add esi, ecx
push eax
push esi
mov ecx, edi
call fcn.00415bf0
mov ecx, dword [esp + 0x80]
mov eax, dword [ecx + 4]
cmp eax, ebx
jne 0x40db64
xor edx, edx
jmp 0x40db7a
mov ecx, dword [ecx + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
xor esi, esi
cmp edx, ebx
mov dword [esp + 0x78], edx
mov dword [esp + 0x24], esi
jbe 0x40e4e8
jmp 0x40db90
xor ebx, ebx
mov ecx, dword [esp + 0x80]
lea eax, [esi + esi*4]
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4 + 0x10]
mov dword [esp + 0x4c], eax
mov ecx, dword [eax + 4]
cmp ecx, ebx
jne 0x40dbb3
xor eax, eax
jmp 0x40dbbb
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp eax, ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x54], ebx
jbe 0x40e4d9
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 4]
mov ecx, dword [eax + ebx*4]
call fcn.00408b80
mov si, ax
mov eax, dword [edi + 4]
and esi, 0xffff
mov ecx, dword [eax + ebx*4]
call fcn.00408ce0
mov di, ax
mov eax, dword [ebp + 0xc]
and edi, 0xffff
cmp esi, eax
jge case.0x40dc42.10
cmp edi, dword [ebp + 0x10]
jge case.0x40dc42.10
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + ebx*4]
movsx ecx, word [ecx + 4]
cmp ecx, 0x201
jg 0x40e3eb
je 0x40e3c9
add ecx, 0xfffffffa
cmp ecx, 0xf7
ja case.0x40dc42.10
xor edx, edx
mov dl, byte [ecx + 0x40e6d8]
jmp dword [edx*4 + 0x40e6c4]
mov ecx, dword [eax + ebx*4]
xor edx, edx
mov eax, ecx
mov eax, dword [eax + 8]
mov dx, word [eax + 0x32]
mov eax, dword [ecx + 8]
xor ecx, ecx
mov cx, word [eax + 0x44]
mov eax, ecx
mov ecx, 0
sub eax, edx
mov dword [esp + 0x7c], ecx
inc eax
mov dword [esp + 0x20], eax
je case.0x40dc42.10
mov eax, edi
lea edx, [edi + 1]
shl esi, 4
shl eax, 6
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0x10]
mov esi, dword [esp + 0x28]
cmp edi, eax
jl 0x40dd7d
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + esi + 4]
test edx, edx
jne 0x40dcad
xor eax, eax
jmp 0x40dcb6
mov eax, dword [eax + esi + 8]
sub eax, edx
sar eax, 6
cmp edi, eax
jl 0x40dd7d
lea ecx, [esp + 0xc8]
call fcn.0040e8f0
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x150], 7
lea esi, [eax + ecx]
mov ecx, esi
call fcn.00412090
cmp eax, dword [esp + 0x14]
jae 0x40dd15
mov eax, dword [esp + 0x5c]
mov edx, dword [esi + 8]
push eax
mov ecx, esi
mov dword [esp + 0x5c], edx
call fcn.00412090
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x5c]
sub ecx, eax
push ecx
push edx
mov ecx, esi
call fcn.00416040
jmp 0x40dd39
mov ecx, esi
call fcn.00412090
cmp dword [esp + 0x14], eax
jae 0x40dd39
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [eax + ecx + 0x40]
push ecx
mov ecx, esi
call fcn.00416320
lea ecx, [esp + 0x100]
mov byte [esp + 0x150], 9
call fcn.00411fc0
lea ecx, [esp + 0xe8]
mov byte [esp + 0x150], 8
call fcn.0041a550
lea ecx, [esp + 0xd8]
mov byte [esp + 0x150], 4
call fcn.0041a550
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + esi + 4]
xor eax, eax
mov ax, word [edx + ecx*2]
mov edx, dword [esp + 0x18]
inc ecx
inc edi
mov dword [edx + esi + 0x34], eax
mov eax, dword [esp + 0x14]
inc eax
add edx, 0x40
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
cmp ecx, eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x18], edx
jb 0x40dc8f
jmp case.0x40dc42.10
mov edx, dword [eax + ebx*4]
mov ecx, dword [ebp + 4]
mov eax, dword [eax + ebx*4]
add ecx, 0x110
mov edx, dword [edx + 8]
mov eax, dword [eax + 8]
mov ecx, dword [ecx + 4]
mov edx, dword [edx + 0x38]
mov eax, dword [eax + 0x38]
lea edx, [edx + edx*4]
test byte [ecx + edx*8 + 0x20], 1
lea edx, [eax + eax*4]
je 0x40dff5
lea eax, [ecx + edx*8]
lea ecx, [esp + 0x2c]
cmp ecx, eax
mov dword [esp + 0x14], eax
je 0x40df3f
lea ecx, [esp + 0x2c]
call fcn.00410090
mov ecx, dword [esp + 0x14]
mov ebx, eax
call fcn.00410090
cmp eax, ebx
ja 0x40de66
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
push edx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
push ecx
call fcn.00419030
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00414d40
mov ecx, ebx
call fcn.00410090
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x54]
lea eax, [edx + eax*2]
mov dword [esp + 0x34], eax
jmp 0x40df43
lea ecx, [esp + 0x2c]
call fcn.00412a50
mov ecx, dword [esp + 0x14]
mov ebx, eax
call fcn.00410090
cmp eax, ebx
ja 0x40dede
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
call fcn.00410090
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
push edx
lea eax, [ecx + eax*2]
mov ecx, dword [ebx + 4]
push eax
push ecx
mov dword [esp + 0x2c], eax
call fcn.00419030
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x2c]
add esp, 0xc
push ecx
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00412fc0
mov ecx, ebx
call fcn.00410090
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x54]
lea eax, [ecx + eax*2]
mov dword [esp + 0x34], eax
jmp 0x40df43
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.00414d40
mov ecx, dword [esp + 0x30]
push ecx
call sub.MFC42u.DLL_operatordelete
mov ebx, dword [esp + 0x18]
add esp, 4
mov ecx, ebx
call fcn.00410090
test eax, eax
jge 0x40df0f
xor eax, eax
lea edx, [eax + eax]
push edx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
mov ecx, dword [ebx + 8]
mov ebx, dword [ebx + 4]
push eax
push ecx
push ebx
lea ecx, [esp + 0x38]
call fcn.00412fc0
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
jmp 0x40df43
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x50], 0
test ecx, ecx
jne 0x40df57
xor eax, eax
jmp 0x40df5b
sub eax, ecx
sar eax, 1
inc eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.00410090
cmp eax, dword [esp + 0x28]
jae 0x40df9c
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], eax
call fcn.00410090
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub ecx, eax
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00412cd0
jmp 0x40dfc5
lea ecx, [esp + 0x2c]
call fcn.00410090
cmp dword [esp + 0x28], eax
jae 0x40dfc5
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push eax
lea eax, [ecx + edx*2]
lea ecx, [esp + 0x30]
push eax
call fcn.00412f80
mov ecx, dword [esp + 0x34]
shl esi, 4
mov word [ecx - 2], 0
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + esi + 4]
push edx
shl edi, 6
lea ecx, [eax + edi]
call fcn.0040eb60
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
jmp 0x40e4a5
lea ecx, [ecx + edx*8 + 0x10]
lea eax, [esp + 0x3c]
cmp eax, ecx
mov dword [esp + 0x14], ecx
je 0x40e178
mov eax, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40e018
xor ecx, ecx
jmp 0x40e01d
mov ecx, dword [ecx + 8]
sub ecx, eax
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x40e029
xor edx, edx
jmp 0x40e02f
mov edx, dword [esp + 0x44]
sub edx, eax
cmp ecx, edx
ja 0x40e08e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
mov ecx, dword [ecx + 8]
push ecx
push edx
call fcn.00418bc0
mov ecx, dword [esp + 0x50]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00414d40
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
test eax, eax
jne 0x40e075
mov ecx, dword [esp + 0x40]
xor edx, edx
lea eax, [ecx + edx]
mov dword [esp + 0x44], eax
jmp 0x40e180
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x40]
sub edx, eax
lea eax, [ecx + edx]
mov dword [esp + 0x44], eax
jmp 0x40e180
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x40e09a
xor edx, edx
jmp 0x40e0a3
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 8]
sub edx, ecx
test eax, eax
jne 0x40e0ab
xor ecx, ecx
jmp 0x40e0b1
mov ecx, dword [esp + 0x48]
sub ecx, eax
cmp edx, ecx
ja 0x40e111
test eax, eax
jne 0x40e0bd
xor ecx, ecx
jmp 0x40e0c3
mov ecx, dword [esp + 0x44]
sub ecx, eax
mov edx, dword [esp + 0x18]
push eax
add ecx, edx
push ecx
push edx
mov dword [esp + 0x2c], ecx
call fcn.00418bc0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [eax + 8]
push ecx
push eax
push edx
lea ecx, [esp + 0x48]
call fcn.004124a0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test eax, eax
jne 0x40e075
mov ecx, dword [esp + 0x40]
xor edx, edx
lea eax, [ecx + edx]
mov dword [esp + 0x44], eax
jmp 0x40e180
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x3c]
push edx
push eax
call fcn.00414d40
mov eax, dword [esp + 0x40]
push eax
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x40e13c
xor eax, eax
jmp 0x40e145
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
sub eax, ecx
test eax, eax
jge 0x40e14b
xor eax, eax
push eax
call sub.MFC42u.DLL_operatornew
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x40], eax
mov ecx, dword [edx + 8]
mov edx, dword [edx + 4]
push eax
push ecx
push edx
lea ecx, [esp + 0x48]
call fcn.004124a0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
jmp 0x40e17c
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
test ecx, ecx
mov byte [esp + 0x1f], 0
jne 0x40e18d
xor edx, edx
jmp 0x40e191
mov edx, eax
sub edx, ecx
inc edx
test ecx, ecx
mov dword [esp + 0x18], edx
jne 0x40e19e
xor edx, edx
jmp 0x40e1a2
mov edx, eax
sub edx, ecx
cmp edx, dword [esp + 0x18]
jae 0x40e1d0
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x40e1b4
xor ecx, ecx
jmp 0x40e1b8
mov ecx, eax
sub ecx, edx
lea edx, [esp + 0x1f]
push edx
mov edx, dword [esp + 0x1c]
sub edx, ecx
lea ecx, [esp + 0x40]
push edx
push eax
call fcn.004122a0
jmp 0x40e1f5
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x40e1f9
mov edx, eax
sub edx, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jae 0x40e1f9
push eax
mov eax, dword [esp + 0x44]
add eax, ecx
lea ecx, [esp + 0x40]
push eax
call fcn.00412470
mov eax, dword [esp + 0x44]
mov byte [eax - 1], 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x40]
shl esi, 4
shl edi, 6
mov eax, dword [eax + esi + 4]
push ecx
lea ecx, [eax + edi]
call fcn.0040eb50
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
jmp 0x40e4a5
mov edx, dword [esp + 0x54]
mov ebx, 0
mov ecx, dword [eax + edx*4]
xor edx, edx
mov eax, ecx
mov eax, dword [eax + 8]
mov dx, word [eax + 0x32]
mov eax, dword [ecx + 8]
xor ecx, ecx
mov cx, word [eax + 0x44]
mov eax, ecx
sub eax, edx
inc eax
mov dword [esp + 0x5c], eax
je case.0x40dc42.10
mov eax, edi
shl eax, 6
mov dword [esp + 0x18], eax
cmp edi, dword [ebp + 0x10]
jge 0x40e2cd
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 8]
mov eax, dword [ebp + 0x18]
mov ecx, dword [edx + 0x38]
mov edx, esi
shl edx, 4
add edx, 4
mov dword [esp + 0x58], ecx
mov ecx, dword [ecx + ebx*8 + 4]
mov dword [esp + 0x20], edx
mov eax, dword [eax + edx]
mov edx, dword [esp + 0x18]
push ecx
lea ecx, [edx + eax]
call fcn.0040eba0
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
mov ecx, dword [eax + ecx]
xor eax, eax
mov ax, word [edx + ebx*8]
mov edx, dword [esp + 0x18]
inc ebx
inc edi
mov dword [edx + ecx + 0x34], eax
mov eax, dword [esp + 0x5c]
add edx, 0x40
cmp ebx, eax
mov dword [esp + 0x18], edx
jb 0x40e25b
jmp case.0x40dc42.10
mov eax, dword [ebp + 0x18]
shl esi, 4
mov ecx, dword [eax + esi + 4]
test ecx, ecx
jne 0x40e2df
xor eax, eax
jmp 0x40e2e8
mov eax, dword [eax + esi + 8]
sub eax, ecx
sar eax, 6
cmp edi, eax
jl case.0x40dc42.10
lea ecx, [esp + 0x108]
call fcn.0040e8f0
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov byte [esp + 0x150], 0xa
add esi, eax
inc edi
mov ecx, esi
call fcn.00412090
cmp eax, edi
jae 0x40e337
mov eax, dword [esi + 8]
push ebx
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.00412090
mov ecx, dword [esp + 0x24]
sub edi, eax
push edi
push ecx
mov ecx, esi
call fcn.00416040
jmp 0x40e356
mov ecx, esi
call fcn.00412090
cmp edi, eax
jae 0x40e356
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
shl edi, 6
add edi, ecx
push eax
push edi
mov ecx, esi
call fcn.00416320
lea ecx, [esp + 0x140]
mov byte [esp + 0x150], 0xc
call fcn.00411fc0
lea ecx, [esp + 0x128]
mov byte [esp + 0x150], 0xb
call fcn.0041a550
lea ecx, [esp + 0x118]
mov byte [esp + 0x150], 4
call fcn.0041a550
jmp case.0x40dc42.10
mov eax, dword [eax + ebx*4]
shl esi, 4
mov ebx, dword [eax + 8]
mov eax, dword [ebp + 0x18]
shl edi, 6
mov eax, dword [eax + esi + 4]
push ebx
lea ecx, [eax + edi]
call fcn.0040f0a0
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + esi + 4]
xor eax, eax
mov ax, word [ebx + 0x34]
mov dword [esi + edi + 0x34], eax
jmp case.0x40dc42.10
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp + 0x18]
shl esi, 4
mov edx, dword [eax + 8]
xor eax, eax
mov esi, dword [esi + ecx + 4]
mov ax, word [edx + 0x34]
shl edi, 6
mov dword [edi + esi + 0x34], eax
jmp case.0x40dc42.10
sub ecx, 0x203
je 0x40e47c
sub ecx, 2
je 0x40e425
sub ecx, 0x79
jne case.0x40dc42.10
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp + 0x18]
shl esi, 4
mov eax, dword [eax + 8]
mov ecx, dword [ecx + esi + 4]
mov edx, dword [eax + 0x38]
shl edi, 6
push edx
add ecx, edi
call fcn.0040eba0
jmp 0x40e49e
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 8]
mov dl, byte [ecx + 0x37]
test dl, dl
jne 0x40e456
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp + 0x18]
mov edx, esi
mov eax, dword [eax + 8]
shl edx, 4
mov edx, dword [edx + ecx + 4]
xor ecx, ecx
mov cl, byte [eax + 0x36]
push ecx
mov ecx, edi
shl ecx, 6
add ecx, edx
call fcn.0040eb20
mov edx, dword [esp + 0x4c]
shl esi, 4
mov eax, dword [edx + 4]
mov ebx, dword [eax + ebx*4]
mov eax, dword [ebp + 0x18]
mov esi, dword [esi + eax + 4]
mov ecx, dword [ebx + 8]
xor eax, eax
mov ax, word [ecx + 0x34]
shl edi, 6
mov dword [edi + esi + 0x34], eax
jmp case.0x40dc42.10
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp + 0x18]
shl esi, 4
mov edx, dword [eax + 8]
mov ecx, dword [ecx + esi + 4]
mov eax, dword [edx + 0x3c]
shl edi, 6
mov edx, dword [edx + 0x38]
push eax
push edx
add ecx, edi
call fcn.0040eb30
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 8]
mov ecx, dword [ecx + esi + 4]
xor eax, eax
mov ax, word [edx + 0x34]
mov dword [ecx + edi + 0x34], eax
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x74]
inc ebx
cmp ebx, eax
mov dword [esp + 0x54], ebx
jb 0x40dbcb
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x24]
inc esi
cmp esi, edx
mov dword [esp + 0x24], esi
jb 0x40db8e
xor ebx, ebx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], ebx
xor edi, edi
lea edx, [eax + ecx + 0x168]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
cmp esi, ebx
je 0x40e5e9
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x84]
mov eax, 0x2aaaaaab
mov ecx, dword [ecx + edx + 0x16c]
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x18]
cmp eax, edx
jae 0x40e5e9
mov cx, word [esi + edi + 4]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], ecx
and ecx, 0xffff
xor eax, eax
cmp edx, ebx
mov ax, word [esi + edi + 8]
jne 0x40e563
xor edx, edx
jmp 0x40e575
mov ebx, dword [ebp + 0x1c]
sub ebx, edx
sar ebx, 4
mov dword [esp + 0x50], ebx
mov edx, dword [esp + 0x50]
xor ebx, ebx
cmp ecx, edx
jge 0x40e5d8
mov edx, dword [ebp + 0x18]
shl ecx, 4
add edx, ecx
mov dword [esp + 0x50], ecx
mov ebx, dword [edx + 4]
test ebx, ebx
jne 0x40e590
xor ebx, ebx
jmp 0x40e59f
mov ebx, dword [edx + 8]
mov ecx, dword [edx + 4]
sub ebx, ecx
mov ecx, dword [esp + 0x50]
sar ebx, 6
cmp eax, ebx
jge 0x40e5d6
mov si, word [esi + edi + 6]
mov edx, dword [edx + 4]
sub si, word [esp + 0x20]
shl eax, 6
inc esi
mov word [edx + eax + 0x30], si
mov edx, dword [esp + 0x24]
mov edx, dword [edx]
add edx, edi
mov si, word [edx + 0xa]
sub si, word [edx + 8]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ecx + edx + 4]
inc esi
mov word [ecx + eax + 0x32], si
xor ebx, ebx
mov ecx, dword [esp + 0x18]
inc ecx
add edi, 0xc
mov dword [esp + 0x18], ecx
jmp 0x40e504
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
cmp edi, eax
mov byte [esp + 0x150], 1
mov ebp, eax
mov dword [esp + 0x50], edi
je 0x40e677
mov eax, dword [edi + 0x38]
mov byte [esp + 0x150], 0xe
cmp eax, ebx
je 0x40e629
mov ecx, dword [eax]
dec ecx
mov dword [eax], ecx
mov ecx, dword [edi + 0x38]
cmp dword [ecx], ebx
jne 0x40e629
cmp ecx, ebx
je 0x40e629
push 1
call fcn.004120b0
mov edx, dword [edi + 0x28]
mov eax, dword [edi + 0x24]
lea esi, [edi + 0x20]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x158], 0xd
call fcn.00414d40
mov eax, dword [esi + 4]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [edi + 0x10]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esp + 0x150], 1
call fcn.0041a550
add edi, 0x40
cmp edi, ebp
mov dword [esp + 0x50], edi
jne 0x40e603
mov edi, dword [esp + 0x64]
push edi
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], ebx
push ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call sub.MFC42u.DLL_operatordelete
mov edx, dword [esp + 0x38]
mov dword [esp + 0x48], ebx
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x154]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret