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

Disassembly:
push 0xffffffffffffffff
push 0x40892b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [esp + 0x60]
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
or ebp, 0xffffffff
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x10]
mov dword [esp + 0x1c], ebx
test eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
jne 0x406621
push 0x10
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
test esi, esi
mov dword [esp + 0x58], 0
je 0x406616
mov eax, 0x2710
push 0x13880
mov dword [esi], ebp
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call sub.MFC42.DLL_operatornew
mov dword [esi + 4], eax
add esp, 4
mov dword [esp + 0x58], ebp
mov dword [edi + 0x10], esi
jmp 0x406623
xor esi, esi
mov dword [esp + 0x58], ebp
mov dword [edi + 0x10], esi
jmp 0x406623
mov dword [eax], ebp
mov ebp, dword [edi + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea ecx, [eax - 1]
cmp edx, ecx
jne 0x406680
mov ebx, dword [ebp + 0xc]
add ebx, eax
lea edx, [ebx*8]
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 3
mov dword [esp + 0x40], eax
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
mov dword [ebp + 8], ebx
mov ebx, dword [esp + 0x74]
add esp, 8
mov dword [ebp + 4], edx
mov edx, dword [ebp]
mov ecx, dword [esp + 0x64]
inc edx
mov dword [ebp], edx
mov eax, edx
mov edx, dword [ebp + 4]
mov dword [edx + eax*8], ecx
mov ecx, dword [esp + 0x68]
mov dword [edx + eax*8 + 4], ecx
mov eax, dword [edi + 0x10]
cmp dword [eax], 0xffffffff
je 0x406982
jmp 0x4066ad
mov ebx, dword [esp + 0x6c]
mov edx, dword [eax]
mov esi, dword [eax + 4]
mov ebp, dword [esp + 0x60]
mov ecx, dword [esi + edx*8]
dec edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x64], ecx
mov edi, dword [esi + edx*8 + 0xc]
mov dword [eax], edx
mov esi, edi
mov dword [esp + 0x4c], edi
imul esi, ebx
lea eax, [esi + ecx]
add eax, ebp
cmp ecx, ebx
jge 0x4066f6
mov dl, byte [eax]
cmp dl, byte [esp + 0x78]
jne 0x4066f6
mov dl, byte [esp + 0x7c]
mov byte [eax], dl
mov edx, dword [esp + 0x64]
inc edx
inc eax
cmp edx, ebx
mov dword [esp + 0x64], edx
jl 0x4066da
lea ebx, [ecx - 1]
lea eax, [esi + ebx]
add eax, ebp
test ebx, ebx
jl 0x406718
mov cl, byte [esp + 0x78]
mov dl, byte [eax]
cmp dl, cl
jne 0x406718
mov dl, byte [esp + 0x7c]
dec ebx
mov byte [eax], dl
dec eax
test ebx, ebx
jge 0x406702
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x20]
dec edx
inc ebx
cmp eax, edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x3c], ebx
jge 0x406732
mov dword [esp + 0x20], edx
cmp dword [esp + 0x1c], ebx
jle 0x40673c
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x28], edi
jge 0x406746
mov dword [esp + 0x28], edi
cmp dword [esp + 0x24], edi
jle 0x406750
mov dword [esp + 0x24], edi
lea eax, [edi + 2]
lea esi, [edi - 1]
cmp esi, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x14], esi
jge 0x406926
mov ecx, esi
imul ecx, dword [esp + 0x6c]
add ecx, ebx
add ecx, ebp
mov dword [esp + 0x18], ecx
jmp 0x40677b
mov edx, dword [esp + 0x64]
test esi, esi
jl 0x406907
cmp esi, dword [esp + 0x70]
jge 0x406907
mov eax, ebx
cmp ebx, edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], eax
jg 0x406979
sub ecx, ebx
mov dword [esp + 0x40], ecx
mov edi, dword [esp + 0x40]
mov dl, byte [esp + 0x78]
xor ecx, ecx
cmp byte [edi + eax], dl
setne cl
mov edi, ecx
mov ecx, dword [esp + 0x2c]
cmp edi, ecx
mov dword [esp + 0x38], edi
je 0x40686f
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], edi
mov edx, ecx
and edx, 0x80000001
jns 0x4067ea
dec edx
or edx, 0xfffffffe
inc edx
inc ecx
test edx, edx
mov dword [esp + 0x30], ecx
je 0x40686f
mov ecx, dword [esp + 0x10]
mov ebp, dword [ecx + 0x10]
mov ecx, dword [ebp + 8]
lea edx, [ecx - 1]
cmp dword [ebp], edx
jne 0x40685a
mov ebx, dword [ebp + 0xc]
add ebx, ecx
lea eax, [ebx*8]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 3
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x48], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x1c]
mov dword [ebp + 8], ebx
mov ebx, dword [esp + 0x44]
add esp, 8
mov dword [ebp + 4], ecx
mov ecx, dword [ebp]
lea edx, [eax - 1]
inc ecx
mov dword [ebp], ecx
mov ebp, dword [ebp + 4]
mov dword [ebp + ecx*8], edx
mov dword [ebp + ecx*8 + 4], esi
mov ecx, dword [esp + 0x64]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jle 0x4067b1
mov ecx, dword [esp + 0x18]
test edi, edi
jne 0x406907
mov edx, dword [esp + 0x10]
dec eax
mov dword [esp + 0x48], eax
mov ebp, dword [edx + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp]
lea edx, [eax - 1]
cmp edi, edx
jne 0x4068f2
mov ebx, dword [ebp + 0xc]
add ebx, eax
lea eax, [ebx*8]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 3
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x48], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x1c]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebp + 8], ebx
mov ebx, dword [esp + 0x44]
add esp, 8
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov edi, dword [esp + 0x48]
inc eax
mov dword [ebp], eax
mov dword [edx + eax*8], edi
mov dword [edx + eax*8 + 4], esi
mov eax, dword [esp + 0x6c]
add esi, 2
add eax, eax
mov dword [esp + 0x14], esi
add ecx, eax
mov eax, dword [esp + 0x68]
cmp esi, eax
mov dword [esp + 0x18], ecx
jl 0x406777
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
cmp dword [eax], 0xffffffff
jne 0x4066a9
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
cmp esi, eax
je 0x406982
mov ecx, dword [esp + 0x20]
cmp ecx, 0xffffffff
je 0x406982
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x70]
cmp edx, eax
je 0x406982
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x406982
push eax
push ecx
push edx
mov edx, dword [esp + 0x80]
push esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, 1
jmp 0x406984
mov edi, dword [esp + 0x38]
jmp 0x406884
xor eax, eax
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 0x20