Function at 0x40d780
Capabilities:
Access peb ldr_data
Create thread
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4365e3
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449030]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebp, ecx
call sub.MFC80U.DLL_Ordinal_4574
mov eax, dword [ebp + 0x78]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [ebp + 0x20]
push 1
push 0x80
push eax
call esi
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x20]
push eax
xor ebx, ebx
push ebx
push 0x80
push ecx
call esi
push 0x44a490
push ebx
push 0x44a424
push 0x4190c0
push ebx
push ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
lea ecx, [esp + 0x18]
mov dword [0x44a48c], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea edx, [esp + 0x30]
mov dword [esp + 0x90], ebx
mov eax, dword [ebp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x44a4d0]
mov ecx, dword [eax + 0x1c]
sub ecx, ebx
je 0x40d90a
sub ecx, 1
jne 0x40d9bb
add eax, 0x28
push eax
lea ecx, [esp + 0x20]
push ecx
mov edi, str..txt
call fcn.004027a0
add esp, 8
push ebx
mov ecx, eax
mov byte [esp + 0x94], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push ecx
mov edx, esp
mov dword [esp + 0x30], esp
push edx
mov edi, eax
call fcn.00402e10
push 0x44a424
call fcn.00418d60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x90], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
fild dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
fstp dword [esp + 0x14]
fild dword [esp + 0x30]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
sub esp, 0x10
fstp dword [esp + 0x60]
mov edx, dword [esp + 0x60]
fld dword [esp + 0x24]
mov dword [esp + 0x34], eax
fstp dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
fild dword [esp + 0x30]
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ecx
fstp dword [esp + 0x68]
mov edx, dword [esp + 0x68]
fild dword [esp + 0x34]
mov dword [eax + 8], edx
mov edx, dword [ebp + 0x20]
push edx
fstp dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
call dword [sym.imp.USER32.dll_GetDC]
lea edx, [ebp + 0x7c]
mov ecx, eax
mov eax, edx
mov edi, 0x44a424
call fcn.00418f80
jmp 0x40d9b6
push ecx
add eax, 0x2c
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push 0x44a41c
call fcn.004164e0
lea eax, [esp + 0x18]
push eax
push 0x44a41c
call fcn.00416900
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], ebx
jne 0x40d94c
push 0x43ab38
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
fild dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x34]
fstp dword [esp + 0x24]
fild dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x20]
fstp dword [esp + 0x50]
lea ecx, [esp + 0x50]
fld dword [esp + 0x24]
push ecx
fstp dword [esp + 0x58]
push edx
fild dword [esp + 0x28]
fstp dword [esp + 0x60]
fild dword [esp + 0x1c]
fstp dword [esp + 0x64]
call dword [sym.imp.USER32.dll_GetDC]
push eax
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
lea ecx, [ebp + 0x7c]
call fcn.00410d30
mov eax, dword [0x44a4d0]
mov eax, dword [eax + 8]
lea esi, [ebp + 0x7c]
mov dword [esi], eax
mov eax, dword [0x44a4d0]
mov ecx, dword [eax + 8]
cmp ecx, 3
ja case.default.0x40d9d4
jmp dword [ecx*4 + 0x40df98]
add eax, 0x34
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
xor edi, edi
mov dword [esp + 0x70], vtable.CArray_unsigned_long_int__unsigned_long_int_const__.0
mov dword [esp + 0x74], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], edi
push ebx
push 0x439fd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x98], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
mov esi, eax
cmp esi, ebx
jge 0x40da34
jmp fcn.00431d0e
mov edi, dword [esp + 0x78]
push esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
mov byte [esp + 0x90], 4
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
sub eax, esi
sub eax, 1
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_5558]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 5
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCR80.dll__wtol]
add esp, 4
test edi, edi
mov ebx, eax
mov dword [esp + 0x20], edi
jl 0x40da24
add edi, 1
lea esi, [esp + 0x70]
call fcn.00406cf0
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x74]
lea ecx, [esp + 0x1c]
mov dword [edi + edx*4], ebx
mov byte [esp + 0x90], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0
push 0x439fd0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
mov esi, eax
test esi, esi
jge 0x40da30
cmp dword [esp + 0x78], 0
jle 0x40da24
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push ecx
lea edi, [ebp + 0x7c]
mov dword [esp + 0x24], eax
call fcn.0040f9d0
mov edx, dword [esp + 0x74]
push edx
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x90], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [0x44a4d0]
mov eax, dword [eax + 0xc]
mov dword [ebp + 0x90], eax
mov ebx, dword [0x44a4d0]
add ebx, 0x14
lea edi, [ebp + 0x7c]
call fcn.0040fb20
mov esi, ebp
call fcn.0040f550
mov ecx, dword [ebp + 0x20]
push 0
push 0x64
push 0x1f4
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [ebp + 0xf8]
mov eax, dword [edx + 0x13c]
lea esi, [ebp + 0xf8]
push ebp
push 0x67
mov ecx, esi
call eax
mov edx, dword [ebp + 0x178]
mov eax, dword [edx + 0x13c]
lea edi, [ebp + 0x178]
push ebp
push 0x89
mov ecx, edi
call eax
mov edx, dword [ebp + 0x118]
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
mov eax, ecx
sub eax, ebx
sub eax, dword [esp + 0x30]
add eax, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x30]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov ecx, eax
sub ecx, dword [esp + 0x44]
add ebx, edx
add dword [esp + 0x4c], ecx
lea edx, [esp + 0x60]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x198]
push edx
push eax
mov dword [esp + 0x50], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
add eax, ecx
push 1
sub ebx, edx
push ebx
sub ecx, eax
push ecx
push edx
push eax
mov ecx, edi
mov dword [esp + 0x44], eax
call sub.MFC80U.DLL_Ordinal_4119
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x48]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_4119
push 0
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_6086
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0x34
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
xor edi, edi
mov dword [esp + 0x70], vtable.CArray_unsigned_long_int__unsigned_long_int_const__.0
mov dword [esp + 0x74], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], edi
push ebx
push 0x439fd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x98], 7
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
mov esi, eax
cmp esi, ebx
jl 0x40da24
jmp 0x40dcc7
mov edi, dword [esp + 0x78]
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
mov byte [esp + 0x90], 8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
sub eax, esi
sub eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_5558]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 9
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 8
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCR80.dll__wtol]
add esp, 4
test edi, edi
mov ebx, eax
mov dword [esp + 0x20], edi
jl 0x40da24
add edi, 1
lea esi, [esp + 0x70]
call fcn.00406cf0
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x74]
mov dword [edi + ecx*4], ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x90], 7
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0
push 0x439fd0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
mov esi, eax
test esi, esi
jge 0x40dcc3
mov eax, dword [esp + 0x78]
cmp eax, 1
jle 0x40da24
test eax, eax
mov ecx, dword [edi + 4]
jle 0x40da24
mov eax, dword [edi]
mov dword [ebp + 0x9c], eax
mov dword [ebp + 0xa0], ecx
push edi
jmp 0x40db10
mov eax, dword [eax]
lea edx, [esp + 0x54]
push edx
push eax
mov dword [esp + 0x58], vtable.Gdiplus::Image.0
mov dword [esp + 0x5c], ebx
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [esp + 0x58], eax
push esi
lea edi, [esp + 0x54]
mov byte [esp + 0x94], 0xa
call fcn.0040f950
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x54]
push eax
mov dword [esp + 0x54], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x40db2a
add eax, 0x34
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
xor esi, esi
mov dword [esp + 0x70], vtable.CArray_unsigned_long_int__unsigned_long_int_const__.0
mov dword [esp + 0x74], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], esi
push ebx
push 0x439fd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x98], 0xc
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
mov edi, eax
cmp edi, ebx
jl 0x40df06
push edi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
mov byte [esp + 0x90], 0xd
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
sub eax, edi
sub eax, 1
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_5558]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 0xe
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x90], 0xd
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCR80.dll__wtol]
add esp, 4
test esi, esi
mov ebx, eax
mov dword [esp + 0x20], esi
jl 0x40da24
lea edi, [esi + 1]
lea esi, [esp + 0x70]
call fcn.00406cf0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
mov dword [edx + eax*4], ebx
mov byte [esp + 0x90], 0xc
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0
push 0x439fd0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_2261]
mov esi, dword [esp + 0x78]
mov edi, eax
test edi, edi
jge 0x40de47
xor ebx, ebx
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MFC80U.DLL_Ordinal_265
mov edx, eax
add esp, 4
cmp edx, ebx
je 0x40df3e
lea eax, [esi - 1]
cmp eax, ebx
jl 0x40df3a
lea ecx, [eax + 1]
mov eax, 0xff000000
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, edx
jmp 0x40df40
xor edi, edi
xor ecx, ecx
cmp esi, ebx
jle 0x40df71
mov edx, dword [esp + 0x74]
mov eax, edi
sub edx, edi
jmp 0x40df52
xor ebx, ebx
cmp ecx, ebx
jl 0x40da24
cmp ecx, esi
jge 0x40da24
mov ebx, dword [edx + eax]
mov dword [eax], ebx
add ecx, 1
add eax, 4
cmp ecx, esi
jl 0x40df50
push esi
mov ebx, edi
lea esi, [ebp + 0x7c]
call fcn.00410c20
push edi
call sub.MFC80U.DLL_Ordinal_266
mov eax, dword [esp + 0x78]
add esp, 4
test eax, eax
je 0x40db18
push eax
jmp 0x40db10