Function at 0x403ac0
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x406c1f
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x40b018]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x40b018]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x403baa
push esi
lea ecx, [esp + 0x50]
call dword [sym.imp.mfc100.dll_Ordinal_788]
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 0x20]
xor edi, edi
push edi
push ecx
push 0x27
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xb
call ebx
push 0xc
mov dword [esp + 0x20], eax
call ebx
mov ecx, dword [esi + 0x20]
mov ebx, eax
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x1c]
inc eax
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
sar ecx, 1
sub eax, ebx
inc eax
cdq
sub eax, edx
mov edx, dword [esi + 0x9e0]
push edx
mov edx, dword [esp + 0x54]
sar eax, 1
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawIcon]
lea ecx, [esp + 0x4c]
call dword [sym.imp.mfc100.dll_Ordinal_1210]
jmp 0x403bb4
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_10030]
xor edi, edi
cmp dword [0x40b3ac], 0xffffffff
jne 0x403ca8
mov eax, dword [esi + 0x20]
lea ebx, [esi + 0x9b8]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
or eax, 0xffffffff
push 0x40b730
mov dword [esp + 0x50], vtable.ATL::CImage.0
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov word [esp + 0x6c], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x40b748]
push 0x40b730
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, str.resmain.jpg
mov dword [esp + 0xbc], edi
call fcn.00401b40
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_4340]
cmp eax, edi
jne 0x403c71
xor eax, eax
jmp 0x403c74
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ecx
push edi
push edi
mov edi, dword [esp + 0x70]
lea ecx, [esp + 0x60]
call fcn.004019e0
lea ecx, [esp + 0x4c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.004012c0
xor edi, edi
cmp dword [0x40b3ac], 1
jne 0x403fac
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_4340]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20]
lea ebx, [esi + 0x9b8]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x9c8]
call dword [sym.imp.mfc100.dll_Ordinal_2183]
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx]
push eax
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esi + 0x9d8]
call dword [sym.imp.mfc100.dll_Ordinal_2184]
lea eax, [esi + 0x9d8]
cmp eax, edi
jne 0x403d25
xor eax, eax
jmp 0x403d28
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0x9cc]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_11924]
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov edx, dword [ebx + 0xc]
sub edx, dword [ebx + 4]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x9c8]
cmp eax, edi
jne 0x403d55
mov dword [esp + 0x14], edi
jmp 0x403d5c
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 0xc4]
lea ecx, [esi + 0xb8]
push eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push edx
push edi
push edi
mov edi, dword [ecx + 0x10]
call fcn.004019e0
lea eax, [esi + 0x9c8]
test eax, eax
jne 0x403d8d
mov dword [esp + 0x14], eax
jmp 0x403d94
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
mov edi, dword [esi + 0xf8]
mov edx, dword [esi + 0x73c]
mov eax, dword [esi + 0x738]
push edi
mov edi, dword [esi + 0x744]
lea ecx, [esi + 0xec]
sub edi, edx
push edi
mov edi, dword [esi + 0x740]
sub edi, eax
push edi
mov edi, dword [ecx + 0x10]
push edx
push eax
mov eax, dword [esp + 0x28]
call fcn.004019e0
cmp dword [esi + 0x928], 0
mov dword [esp + 0x34], 0
jle 0x403e79
lea ecx, [esi + 0x92c]
mov dword [esp + 0x14], ecx
lea ecx, [esi + 0x74c]
lea edx, [esi + 0x12c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
cmp dword [eax], 1
jne 0x403e55
lea eax, [esi + 0x9c8]
test eax, eax
jne 0x403e19
mov dword [esp + 0x28], eax
jmp 0x403e20
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ecx - 4]
mov edi, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [edx]
push eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
sub eax, edi
push eax
mov eax, dword [esp + 0x28]
sub ecx, eax
push ecx
push edi
mov edi, dword [edx + 4]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [edx - 0xc]
call fcn.004019e0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], 4
inc eax
add ecx, 0x10
add edx, 0x34
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], edx
cmp eax, dword [esi + 0x928]
jl 0x403e00
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov dword [esp + 0xb8], 1
mov edx, dword [esi + 0x9b4]
push edx
lea eax, [esp + 0x28]
push 0x407d28
push eax
call dword [sym.imp.mfc100.dll_Ordinal_4283]
mov edi, dword [esp + 0x28]
add esp, 0xc
push 1
mov ecx, edi
call dword [sym.imp.mfc100.dll_Ordinal_12128]
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
push 0xc2a11b
mov ecx, edi
call eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], vtable.CFont.0
push 0
push 0x407d38
push 0x96
lea ecx, [esp + 0x38]
mov byte [esp + 0xc4], 2
call dword [sym.imp.mfc100.dll_Ordinal_3167]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx - 0xc]
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esp + 0x20], edx
push dword [esp + 0x20]
mov edx, dword [edi]
push ecx
sub eax, 0xa0
push 0xa
push eax
mov eax, dword [edx + 0x64]
mov ecx, edi
call eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
sub eax, dword [ebx + 4]
sub ecx, dword [ebx]
lea edx, [esi + 0x9c8]
test edx, edx
je 0x403f3e
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [edi + 4]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esi + 0x20]
push ebx
push edx
call dword [sym.imp.USER32.dll_ValidateRect]
lea ecx, [esi + 0x9c8]
call dword [sym.imp.mfc100.dll_Ordinal_3421]
lea ecx, [esi + 0x9d8]
call dword [sym.imp.mfc100.dll_Ordinal_3439]
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [esp + 0xb8], 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.CFont.0
call fcn.004010d0
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00405ab8
mov esp, ebp
pop ebp
ret