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

Disassembly:
sub esp, 0x44
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x30]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ecx, dword [ebx + 0x78]
mov esi, dword [ebx + 0x70]
sub eax, edx
add ecx, esi
cdq
idiv ecx
mov ecx, dword [ebx + 0x7c]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x74]
add ecx, eax
mov eax, dword [esp + 0x40]
sub eax, ebp
cdq
idiv ecx
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx]
mov esi, eax
lea eax, [esp + 0x44]
push eax
call dword [edx + 0x58]
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x74]
mov eax, dword [esp + 0x48]
add ecx, edx
cdq
idiv ecx
mov edi, eax
mov eax, dword [esp + 0x50]
cdq
idiv ecx
mov ecx, eax
cmp ecx, esi
jl 0x414147
lea ecx, [esi - 1]
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 0x70]
lea esi, [eax + edx]
mov eax, dword [esp + 0x44]
cdq
idiv esi
mov ebp, eax
mov eax, dword [esp + 0x4c]
cdq
idiv esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], ebp
cmp ebp, esi
mov dword [esp + 0x30], eax
jl 0x414175
dec ebp
mov dword [esp + 0x10], ebp
cmp edi, ecx
jg 0x414362
mov edx, edi
sub ecx, edi
imul edx, esi
inc ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov ecx, ebp
cmp ebp, eax
mov dword [esp + 0x14], ecx
jg 0x41434d
mov edi, dword [ebx + 0x80]
mov esi, edx
add esi, edi
mov edi, dword [ebx + 0x128]
add esi, ecx
cmp esi, edi
mov dword [esp + 0x28], esi
jge 0x41433c
mov edx, dword [ebx + 0x13c]
mov eax, dword [ebx + 0x138]
mov ebp, edx
xor edi, edi
mov dword [esp + 0x2c], ebp
inc ebp
cmp ebp, edi
jne 0x4141fa
cmp eax, edi
je 0x4141e9
push eax
mov dword [esp + 0x5c], edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x138], edi
mov dword [ebx + 0x140], edi
mov dword [ebx + 0x13c], edi
jmp 0x41431f
cmp eax, edi
jne 0x41423b
lea edi, [ebp*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x138], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0x140], ebp
mov dword [ebx + 0x13c], ebp
jmp 0x41431f
mov ecx, dword [ebx + 0x140]
cmp ebp, ecx
jg 0x414272
cmp edx, ebp
jge 0x41425f
mov ecx, ebp
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 0x13c], ebp
jmp 0x41431f
jle 0x414267
sub edx, ebp
mov dword [esp + 0x58], edx
mov dword [ebx + 0x13c], ebp
jmp 0x41431f
mov eax, dword [ebx + 0x144]
cmp eax, edi
jne 0x41429f
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x414293
mov eax, 4
jmp 0x41429f
cmp eax, 0x400
jle 0x41429f
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x58], eax
jl 0x4142ad
mov dword [esp + 0x58], ebp
mov eax, dword [esp + 0x58]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0x13c]
mov esi, dword [ebx + 0x138]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x28], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x13c]
mov ecx, ebp
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x138]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x30]
add esp, 8
mov dword [ebx + 0x138], ecx
mov dword [ebx + 0x13c], ebp
mov dword [ebx + 0x140], edx
mov eax, dword [ebx + 0x138]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
mov dword [eax + ecx*4], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jle 0x41419b
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add edx, esi
dec ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
jne 0x41418d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4