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

Disassembly:
push 0xffffffffffffffff
push 0x45c3d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov ecx, dword [esp + 0x68]
push ebx
push ebp
xor ebx, ebx
xor edx, edx
xor ebp, ebp
push esi
mov esi, dword [esp + 0x78]
cmp ecx, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], ebp
jne 0x40532e
cmp esi, ebx
jne 0x40532e
lea ecx, [esp + 0x84]
call sub.mfc42.dll_CString::CString_2
push 0x6f
lea ecx, [esp + 0x88]
mov dword [esp + 0x70], ebx
call sub.mfc42.dll_CString::LoadStringA
mov eax, dword [esp + 0x84]
push ebx
push ebx
push eax
call sub.mfc42.dll_AfxMessageBox
lea ecx, [esp + 0x84]
mov dword [esp + 0x6c], 0xffffffff
call sub.mfc42.dll_CString::CString
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
cmp ecx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
je 0x405381
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx]
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x1c], ebx
mov dx, word [ecx + 0xe]
mov dword [esp + 0x14], ebp
cmp edx, 0x18
mov dword [esp + 0x2c], edx
je 0x40537a
cmp edx, 8
jne 0x40536e
add ebp, 0x400
jmp 0x405376
cmp edx, 1
jne 0x40537a
add ebp, 8
mov dword [esp + 0x14], ebp
lea eax, [ecx + ebp]
mov dword [esp + 0x24], eax
push edi
xor eax, eax
xor edi, edi
mov dword [esp + 0x24], eax
test esi, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], edi
je 0x405412
mov eax, dword [esi + 4]
mov edi, dword [esi + 8]
test ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], edi
jne 0x40540b
mov ebp, dword [esi]
xor edx, edx
mov dx, word [esi + 0xe]
mov dword [esp + 0x18], ebp
cmp edx, 0x18
mov dword [esp + 0x30], edx
je 0x40540b
cmp edx, 8
jne 0x4053ca
add ebp, 0x400
jmp 0x405407
cmp edx, 1
jne 0x40540b
cmp byte [ebp], 0
jne 0x405404
mov cl, byte [ebp + 2]
test cl, cl
jne 0x405404
mov cl, byte [ebp + 1]
test cl, cl
jne 0x405404
mov cl, byte [ebp + 4]
test cl, cl
jne 0x405404
mov cl, byte [ebp + 6]
test cl, cl
jne 0x405404
mov cl, byte [ebp + 5]
test cl, cl
jne 0x405404
mov byte [ebp], 0xff
mov byte [ebp + 2], 0xff
mov byte [ebp + 1], 0xff
add ebp, 8
mov dword [esp + 0x18], ebp
lea ecx, [esi + ebp]
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
sub eax, esi
mov esi, dword [esp + 0x88]
sub eax, ecx
add eax, ebx
test esi, esi
mov dword [esp + 0x14], eax
jl 0x405443
mov ecx, dword [esp + 0x1c]
add ecx, esi
cmp ecx, edi
jg 0x405451
mov ecx, edi
jmp 0x405451
mov ecx, edi
sub ecx, esi
mov esi, dword [esp + 0x1c]
cmp esi, ecx
jle 0x405451
mov ecx, esi
imul eax, edx
add eax, 0x1f
mov dword [esp + 0x10], ecx
cdq
and edx, 0x1f
add eax, edx
mov ebx, eax
sar ebx, 5
shl ebx, 2
mov eax, ebx
imul eax, ecx
mov dword [esp + 0x38], eax
lea esi, [eax + ebp]
push esi
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x48], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x78]
and ecx, 3
add ebp, edx
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
test esi, esi
jne 0x4054af
mov esi, dword [esp + 0x7c]
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov dword [edx + 8], esi
mov dword [edx + 4], edi
mov dword [edx + 0x14], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x88]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], esi
jl 0x405546
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x1c]
sub edi, eax
mov eax, dword [esp + 0x88]
add edx, eax
push edx
push edi
push eax
lea eax, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.user32.dll_SetRect]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push esi
push ecx
push 0
lea edx, [esp + 0x64]
push edi
push edx
call dword [sym.imp.user32.dll_SetRect]
jmp 0x40558c
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x1c]
sub esi, edi
mov edi, dword [sym.imp.user32.dll_SetRect]
push eax
push esi
push 0
lea ecx, [esp + 0x54]
push 0
push ecx
call edi
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x14]
sub edx, eax
push edx
push ecx
neg eax
push eax
lea edx, [esp + 0x64]
push esi
push edx
call edi
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
imul eax, edi
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
mov ecx, eax
mov eax, dword [esp + 0x34]
imul eax, edi
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar ecx, 5
sar eax, 5
shl ecx, 2
shl eax, 2
cmp edi, 0x18
mov dword [esp + 0x78], eax
jne 0x405775
mov edi, dword [esp + 0x10]
mov dword [esp + 0x7c], 0
test edi, edi
jle 0x405afc
dec edi
mov dword [esp + 0x18], esi
imul edi, ebx
dec esi
imul esi, eax
neg eax
mov dword [esp + 0x38], eax
mov eax, ecx
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x1c]
neg eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
lea edx, [esi - 1]
lea eax, [esi + eax - 1]
imul edx, ecx
neg ebx
imul eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
jle 0x40572a
xor esi, esi
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x48]
push ecx
push ebx
push edx
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
je 0x405682
mov eax, dword [esp + 0x88]
test eax, eax
jl 0x405663
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
add eax, esi
jmp 0x4056c7
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add ecx, esi
add ecx, edx
lea edx, [edi + esi]
add edx, ebp
mov ax, word [ecx]
mov word [edx], ax
mov cl, byte [ecx + 2]
jmp 0x405713
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x58]
push edx
push ebx
push eax
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
je 0x405708
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x84]
sub eax, edx
add eax, ecx
mov ecx, dword [esp + 0x88]
test ecx, ecx
jl 0x4056dc
mov ecx, dword [esp + 0x34]
add eax, ebx
lea edx, [ecx + eax*2]
mov ecx, dword [esp + 0x24]
add eax, edx
add eax, ecx
lea ecx, [edi + esi]
add ecx, ebp
mov dx, word [eax]
mov word [ecx], dx
mov al, byte [eax + 2]
mov byte [ecx + 2], al
jmp 0x405716
mov edx, dword [esp + 0x18]
add eax, ebx
sub edx, ecx
mov ecx, dword [esp + 0x24]
dec edx
lea eax, [eax + eax*2]
imul edx, dword [esp + 0x78]
add ecx, edx
lea edx, [edi + esi]
add eax, ecx
add edx, ebp
mov cx, word [eax]
mov word [edx], cx
mov al, byte [eax + 2]
mov byte [edx + 2], al
jmp 0x405716
lea edx, [edi + esi]
or ecx, 0xffffffff
add edx, ebp
mov word [edx], cx
mov byte [edx + 2], cl
mov eax, dword [esp + 0x14]
inc ebx
add esi, 3
cmp ebx, eax
jl 0x405637
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
inc eax
add ebx, ecx
add esi, ecx
dec edx
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x3c]
add ebx, edx
mov edx, dword [esp + 0x10]
add edi, esi
cmp eax, edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x34], ebx
jl 0x405627
jmp 0x405afc
cmp edi, 8
jne 0x4058da
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], 0
test eax, eax
jle 0x405afc
mov edx, dword [esp + 0x78]
mov eax, ebx
neg eax
mov dword [esp + 0x2c], eax
mov eax, edx
neg eax
mov dword [esp + 0x38], eax
mov eax, ecx
neg eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], esi
dec esi
imul esi, edx
lea edi, [eax - 1]
mov edx, dword [esp + 0x1c]
imul edi, ebx
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x88]
add edi, ebp
lea ebp, [edx - 1]
lea ebx, [edx + esi - 1]
imul ebp, ecx
mov eax, dword [esp + 0x28]
imul ebx, ecx
add ebp, eax
add ebx, eax
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jle 0x40589b
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x48]
push ecx
push esi
push edx
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
je 0x405824
mov eax, dword [esp + 0x88]
test eax, eax
jl 0x40581c
mov al, byte [ebx + esi]
mov byte [edi + esi], al
jmp 0x40588e
mov cl, byte [esi + ebp]
mov byte [edi + esi], cl
jmp 0x40588e
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x58]
push edx
push esi
push eax
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
je 0x40588a
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x84]
sub eax, edx
add eax, ecx
mov ecx, dword [esp + 0x88]
test ecx, ecx
jl 0x40586e
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
add ecx, eax
add ecx, esi
mov al, byte [ecx + edx]
mov byte [edi + esi], al
jmp 0x40588e
mov edx, dword [esp + 0x34]
sub edx, ecx
dec edx
imul edx, dword [esp + 0x78]
add edx, eax
mov eax, dword [esp + 0x24]
add edx, esi
mov cl, byte [edx + eax]
mov byte [edi + esi], cl
jmp 0x40588e
mov byte [edi + esi], 0xff
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x4057f4
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
add ebx, ecx
add ebp, ecx
mov ecx, dword [esp + 0x34]
inc eax
dec ecx
add esi, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x10]
add edi, edx
cmp eax, ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x30], esi
jl 0x4057e6
jmp 0x405afc
cmp edi, 1
jne 0x405afc
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], 0
test eax, eax
jle 0x405afc
mov edx, dword [esp + 0x78]
lea edi, [eax - 1]
mov dword [esp + 0x2c], esi
imul edi, ebx
dec esi
imul esi, edx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x1c]
neg ebx
lea eax, [esi - 1]
mov dword [esp + 0x40], ebx
imul eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x88]
mov ebx, edx
mov edx, ecx
lea eax, [esi + eax - 1]
neg ebx
neg edx
imul eax, ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jle 0x405aba
mov ebx, dword [esp + 0x7c]
lea ecx, [esp + 0x48]
push ebx
push esi
push ecx
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
je 0x4059b4
mov eax, dword [esp + 0x88]
test eax, eax
mov eax, esi
cdq
jl 0x405995
and edx, 7
add eax, edx
mov edx, dword [esp + 0x34]
sar eax, 3
lea ecx, [eax + edx]
lea edx, [edi + eax]
mov eax, dword [esp + 0x28]
mov cl, byte [ecx + eax]
mov byte [edx + ebp], cl
jmp 0x405aa3
mov ecx, dword [esp + 0x28]
and edx, 7
add eax, edx
mov edx, dword [esp + 0x30]
sar eax, 3
add edx, eax
add eax, edi
mov dl, byte [edx + ecx]
mov byte [eax + ebp], dl
jmp 0x405aa3
push ebx
lea eax, [esp + 0x5c]
push esi
push eax
call dword [sym.imp.user32.dll_PtInRect]
test eax, eax
je 0x405a55
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x84]
sub eax, ecx
mov ecx, dword [esp + 0x88]
add eax, ebx
test ecx, ecx
jl 0x405a19
add eax, esi
cdq
and edx, 7
add eax, edx
mov ecx, eax
mov eax, dword [esp + 0x18]
sar ecx, 3
add ecx, eax
mov eax, esi
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x24]
sar eax, 3
mov cl, byte [ecx + edx]
add eax, edi
mov byte [eax + ebp], cl
jmp 0x405aa3
mov ebx, dword [esp + 0x2c]
add eax, esi
cdq
sub ebx, ecx
and edx, 7
dec ebx
add eax, edx
imul ebx, dword [esp + 0x78]
mov ecx, eax
mov eax, esi
cdq
sar ecx, 3
and edx, 7
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x24]
add eax, edx
mov edx, dword [esp + 0x3c]
add ecx, ebx
sar eax, 3
mov cl, byte [edx + ecx]
add eax, edi
mov byte [eax + ebp], cl
jmp 0x405aa3
mov al, byte [ebp - 8]
test al, al
jne 0x405a92
mov al, byte [ebp - 6]
test al, al
jne 0x405a92
mov al, byte [ebp - 7]
test al, al
jne 0x405a92
mov al, byte [ebp - 4]
test al, al
jne 0x405a92
mov al, byte [ebp - 2]
test al, al
jne 0x405a92
mov al, byte [ebp - 3]
test al, al
jne 0x405a92
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, edi
mov byte [eax + ebp], 0xff
jmp 0x405aa3
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, edi
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x14]
add esi, 8
cmp esi, eax
jl 0x405951
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x7c]
add esi, edx
add ecx, edx
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
inc eax
dec esi
add ecx, ebx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
add edi, esi
cmp eax, ecx
mov dword [esp + 0x7c], eax
jl 0x405943
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret