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

Disassembly:
push 0xffffffffffffffff
push 0x40c29a
mov eax, dword fs:[0]
push eax
sub esp, 0xe6c
mov eax, dword [0x414018]
xor eax, esp
mov dword [esp + 0xe68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x414018]
xor eax, esp
push eax
lea eax, [esp + 0xe80]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
push eax
push 0x40e7a4
xor ebx, ebx
push 1
push ebx
mov edi, ecx
push 0x40e794
mov dword [esp + 0x64], edi
mov byte [esp + 0x2f], 1
mov dword [esp + 0x60], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4078e3
xor al, al
jmp 0x407cc4
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x407cb0
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x58]
mov dword [esp + 0xe88], ebx
mov edx, dword [edi + 0x2e0]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi + 0x2e0]
push 0x20
push ebx
push 0x1036
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x6b
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x58]
push 0xffffffffffffffff
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
lea ebp, [edi + 0x2c0]
fmul qword [0x410450]
call fcn.0040ba50
mov edx, dword [esp + 0x24]
push eax
push ebx
push edx
push ebx
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_3869
push 0x6c
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
push 0xffffffffffffffff
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fmul qword [0x410448]
call fcn.0040ba50
mov ecx, dword [esp + 0x24]
push eax
push ebx
push ecx
push 1
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_3869
push 0x6d
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov edx, dword [esp + 0x60]
sub edx, dword [esp + 0x58]
push 0xffffffffffffffff
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul qword [0x410450]
call fcn.0040ba50
push eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push 2
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_3869
xor esi, esi
cmp dword [esp + 0x38], ebx
mov word [esp + 0x67c], bx
mov word [esp + 0x7c], bx
mov word [esp + 0x47c], bx
mov word [esp + 0x27c], bx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
jle 0x407c4d
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x34]
mov edx, dword [edx + esi*4]
push edx
mov edx, dword [esp + 0x3c]
mov edx, dword [edx + esi*4]
push edx
mov edx, dword [esp + 0x38]
mov edx, dword [edx + esi*4]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jl 0x407c09
cmp dword [esp + 0x48], ebx
je 0x407c09
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + esi*4]
mov edi, dword [sym.imp.MSVCR80.dll_wcsncpy]
push 0x100
push edx
lea eax, [esp + 0x284]
push eax
call edi
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + esi*4]
push 0x100
push edx
lea eax, [esp + 0x490]
push eax
call edi
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + esi*4]
push 0x400
push edx
lea eax, [esp + 0x69c]
push eax
call edi
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + esi*4]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
add esp, 0x24
lea ecx, [esp + 0x40]
push ecx
push eax
call edx
mov eax, dword [esp + 0x24]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x3c]
push ecx
push eax
call edx
mov ax, word [esp + 0x44]
mov cx, word [esp + 0x40]
mov dx, word [esp + 0x3c]
push 0x100
mov word [esp + 0x72], ax
lea eax, [esp + 0x80]
push eax
push ebx
mov word [esp + 0x7e], cx
lea ecx, [esp + 0x78]
push ecx
push 1
push 0x400
mov word [esp + 0x84], dx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0x10
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0x68], eax
cmp eax, ebx
mov byte [esp + 0xe88], 1
je 0x407b90
lea edx, [esp + 0x67c]
push edx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x484]
push edx
lea ecx, [esp + 0x288]
push ecx
push eax
call fcn.00403b40
mov edi, eax
jmp 0x407b92
xor edi, edi
cmp edi, ebx
mov byte [esp + 0xe88], 0
je 0x407c09
mov eax, dword [edi]
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
push eax
push edx
push 1
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_3873
add dword [esp + 0x1c], 1
mov ebx, eax
mov eax, dword [edi + 4]
push eax
push 1
push ebx
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_5869
mov eax, dword [edi + 8]
push eax
push 2
push ebx
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_5869
push edi
push 0
push 0
push 0
push 0
push 4
push 0
push ebx
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_5862
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x47c]
push eax
lea ecx, [edi + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_1472]
test eax, eax
jne 0x407c07
mov dword [esp + 0x4c], ebx
xor ebx, ebx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + esi*4]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edx
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + esi*4]
push ecx
call edi
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + esi*4]
push eax
call edi
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
add esi, 1
cmp esi, dword [esp + 0x38]
jl 0x407a41
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
push 2
push 2
push esi
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_5867
mov ecx, dword [edi + 0x2e0]
push ebx
push esi
push 0x1013
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x38], ebx
jle 0x407c99
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
push edx
call esi
mov eax, dword [esp + 0x30]
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
lea ecx, [esp + 0x20]
mov dword [esp + 0xe88], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x407cb4
mov byte [esp + 0x1b], bl
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0xe80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe68]
xor ecx, esp
call fcn.0040b277
add esp, 0xe78
ret