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

Disassembly:
sub esp, 0x460
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x24]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 0x54]
mov ecx, dword [esp + 0x34]
add ecx, eax
mov eax, dword [0x4ba588]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x4ba584]
mov edx, dword [ebx + 0x50]
mov esi, dword [esp + 0x30]
imul ecx, eax
mov edi, dword [ebx + 0x4c]
add esi, edx
shl ecx, 4
mov dword [esp + 0x30], esi
mov esi, ecx
mov edx, eax
xor eax, eax
shr ecx, 2
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [edx + 0x80]
mov edi, dword [esp + 0x474]
shl eax, 5
or eax, 0xfff
mov dword [esp + 0x18], edi
inc eax
mov dword [ebx + 0x80], edi
cdq
and edx, 0xfff
add eax, edx
mov esi, eax
sar esi, 0xc
mov ecx, esi
shl ecx, 0xd
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_AfxGetModuleState
mov ebp, dword [eax + 4]
mov edx, dword [esp + 0x20]
mov eax, edi
add ebp, 0x85c
push edx
and eax, 0xfffff000
push esi
push eax
mov ecx, ebp
call fcn.00421da0
xor esi, esi
mov dword [esp + 0x3c], 0x10
cmp edi, esi
jne 0x40362a
mov dword [esp + 0x38], esi
jmp 0x403636
push edi
mov ecx, ebp
call fcn.00426b30
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
cmp eax, esi
jle 0x4038c0
mov ebp, dword [sym.imp.MSVCRT.dll_toupper]
mov ecx, dword [ebx + 0x80]
mov edx, dword [esp + 0x18]
and ecx, 0xfffff000
mov eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x20]
lea edi, [esp + 0x40]
lea esi, [ecx + eax*2]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x269]
mov byte [esp + 0x268], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
lea ecx, [esp + 0x268]
push eax
push ecx
lea eax, [esp + 0x68]
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00403900
cmp eax, 1
jne 0x4037ea
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x60]
push 0
push edx
push esi
lea ecx, [ebx + 0x68]
call fcn.00405ca0
mov eax, dword [0x4ba584]
shl eax, 4
add esi, eax
mov eax, dword [0x4bbd34]
test eax, eax
mov dword [esp + 0x10], esi
je 0x4036fe
push 0x72
call ebp
add esp, 4
jmp 0x403703
mov eax, 0x72
movsx ecx, byte [esp + 0x80]
cmp ecx, eax
jne 0x403755
mov eax, dword [0x4bbd34]
test eax, eax
je 0x403721
push 0x65
call ebp
add esp, 4
jmp 0x403726
mov eax, 0x65
movsx edx, byte [esp + 0x81]
cmp edx, eax
jne 0x403755
mov eax, dword [0x4bbd34]
test eax, eax
je 0x403744
push 0x74
call ebp
add esp, 4
jmp 0x403749
mov eax, 0x74
movsx ecx, byte [esp + 0x82]
cmp ecx, eax
je 0x4037ca
mov eax, dword [0x4bbd34]
test eax, eax
je 0x403767
push 0x6a
call ebp
add esp, 4
jmp 0x40376c
mov eax, 0x6a
movsx edx, byte [esp + 0x80]
cmp edx, eax
jne 0x40389c
mov eax, dword [0x4bbd34]
test eax, eax
je 0x40378e
push 0x6d
call ebp
add esp, 4
jmp 0x403793
mov eax, 0x6d
movsx ecx, byte [esp + 0x81]
cmp ecx, eax
jne 0x40389c
mov eax, dword [0x4bbd34]
test eax, eax
je 0x4037b5
push 0x70
call ebp
add esp, 4
jmp 0x4037ba
mov eax, 0x70
movsx edx, byte [esp + 0x82]
cmp edx, eax
jne 0x40389c
mov eax, dword [0x4ba584]
mov ecx, dword [esp + 0x10]
shl eax, 4
add ecx, eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x40389c
cmp eax, 2
jne 0x40385c
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x268]
lea esi, [ebx + 0x68]
push eax
push edi
mov ecx, esi
call fcn.00405a50
mov ecx, dword [0x4ba584]
mov eax, dword [esp + 0x14]
shl ecx, 4
add edi, ecx
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x10], edi
cmp eax, ecx
mov dword [esp + 0x14], eax
jge 0x403843
lea edx, [esp + 0x60]
push 0
push edx
push edi
mov ecx, esi
call fcn.00405ca0
mov eax, dword [0x4ba584]
shl eax, 4
add edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [0x4bbd34]
test eax, eax
je 0x4036fe
push 0x72
call ebp
add esp, 4
jmp 0x403703
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x60]
push esi
push str._p_____
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
inc esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x60]
push 0
push ecx
push esi
lea ecx, [ebx + 0x68]
call fcn.00405ca0
mov edx, dword [0x4ba584]
shl edx, 4
add esi, edx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40364c
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x5c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4038ec
mov edx, dword [esp + 0x1c]
push edx
push ecx
push eax
mov ecx, ebx
call fcn.00403df0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x460
ret 4