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

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x44]
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
push edi
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov word [ebp + 2], di
imul edi, eax
mov ebx, dword [esp + 0x48]
lea ecx, [ebp + 8]
lea edx, [esi + esi*2]
mov dword [esp + 0x20], ecx
push edi
mov dword [esp + 0x2c], ebx
lea ecx, [ebp + edx*8 + 8]
mov word [ebp], 0
mov word [ebp + 4], ax
mov word [ebp + 6], si
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], edi
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
inc edx
imul edx, dword [esp + 0x58]
shl edx, 1
push edx
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x34], eax
xor eax, eax
add esp, 8
cmp esi, eax
jle 0x42254f
mov dword [esp + 0x34], esi
jmp 0x422303
mov edi, dword [esp + 0x3c]
xor eax, eax
mov ecx, dword [esp + 0x54]
add edi, ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x1c], edi
xor esi, esi
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov eax, ebx
test ecx, ecx
mov byte [esp + 0x58], 1
mov byte [esp + 0x48], 1
jle 0x422393
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x50]
test ecx, ecx
jle 0x42237f
mov dword [esp + 0x30], ecx
mov dl, byte [esp + 0x48]
test dl, dl
je 0x422355
mov dl, byte [eax]
inc eax
test dl, dl
je 0x422355
mov byte [esp + 0x48], 0
mov esi, edi
mov dl, byte [esp + 0x58]
test dl, dl
je 0x422374
mov edx, dword [esp + 0x1c]
dec edx
mov dword [esp + 0x1c], edx
cmp byte [edx], 0
je 0x422374
mov ebp, dword [esp + 0x18]
mov byte [esp + 0x58], 0
mov edx, dword [esp + 0x30]
dec edx
mov dword [esp + 0x30], edx
jne 0x42233f
mov edx, dword [esp + 0x18]
inc edi
dec edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x54]
cmp edi, edx
jl 0x422333
jmp 0x422397
mov ecx, dword [esp + 0x50]
xor edx, edx
mov byte [esp + 0x58], 1
test ecx, ecx
mov byte [esp + 0x48], 1
jle 0x422434
mov dword [esp + 0x1c], ecx
cmp esi, ebp
jge 0x422422
mov edi, esi
lea eax, [esi + 1]
imul edi, ecx
imul eax, ecx
lea ecx, [edi + edx]
mov edi, ebp
mov dword [esp + 0x30], ecx
add ecx, ebx
mov dword [esp + 0x18], ecx
sub edi, esi
mov ecx, eax
sub ecx, edx
lea ecx, [ecx + ebx - 1]
mov bl, byte [esp + 0x48]
test bl, bl
je 0x4223f1
mov ebx, dword [esp + 0x18]
cmp byte [ebx], 0
je 0x4223f1
mov byte [esp + 0x48], 0
mov dword [esp + 0x24], edx
mov bl, byte [esp + 0x58]
test bl, bl
je 0x42240b
cmp byte [ecx], 0
je 0x42240b
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x58], 0
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x18]
add ebx, ecx
add eax, ecx
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x28]
dec edi
jne 0x4223cf
mov edi, dword [esp + 0x1c]
inc edx
dec edi
cmp edx, ecx
mov dword [esp + 0x1c], edi
jl 0x4223af
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
sub eax, ecx
sub ebp, esi
mov word [edi], cx
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x4c]
mov word [edi + 2], si
mov word [edi + 4], ax
mov word [edi + 6], bp
mov dword [esp + 0x14], eax
add edi, 8
xor eax, eax
mov dword [edx + 0x14], ecx
mov dword [edi], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
lea eax, [edx + 0x14]
add edx, 0x18
test ebp, ebp
mov dword [esp + 0x20], edx
je 0x422518
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
push ebp
push edx
push eax
push esi
mov esi, dword [esp + 0x48]
push ecx
push esi
push ebx
call fcn.00422580
mov al, byte [esp + 0x78]
add esp, 0x1c
test al, al
je 0x4224c2
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push ebp
push edx
push eax
push esi
call fcn.00428d90
add esp, 0x10
jmp 0x4224c7
mov eax, 0x7fffffff
mov edx, ebp
imul edx, dword [esp + 0x14]
cmp eax, edx
jge 0x4224fa
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
mov ecx, eax
mov dword [edi], 3
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
add edx, eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], edx
jmp 0x42251e
mov eax, dword [esp + 0x10]
mov ecx, edx
mov ebx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
jmp 0x42251e
mov dword [eax], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
sub ecx, eax
mov ebx, dword [esp + 0x40]
add ecx, 7
mov dword [esp + 0x28], ebx
and ecx, 0xfffffff8
add ecx, eax
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], eax
jne 0x4222fd
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x3c]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x18]
add esp, 8
sub eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret