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

Disassembly:
push 0xffffffffffffffff
push 0x43517e
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4508cc]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x4508cc]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
cmp dword [esp + 0xb4], 1
mov esi, ecx
jne 0x408b36
mov eax, dword [esi + 0x20]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x7c]
call fcn.0040db50
xor ebx, ebx
test eax, eax
je 0x408b22
mov eax, dword [esi + 0x7c]
cmp dword [eax + 0x30], ebx
jne 0x408a27
mov eax, dword [eax + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x408a27
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov edi, eax
jne 0x4088bd
mov edi, 0x43affc
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x10]
mov dword [esp + 0xac], ebx
call fcn.004131e0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov byte [esp + 0xac], 1
jne 0x4088f1
push 0x96
jmp 0x40898a
cmp eax, 1
jne 0x408920
cmp word [edi], bx
je 0x40890b
push edi
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
jmp 0x4089a2
push 0x98
lea ecx, [esp + 0x14]
call fcn.004131f0
lea edx, [esp + 0x10]
push edx
jmp 0x408998
cmp eax, 2
jne 0x408951
push 0x97
lea ecx, [esp + 0x14]
call fcn.004131f0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
push 1
lea ecx, [esi + 0x53c]
call sub.MFC80U.DLL_Ordinal_2155
jmp 0x4089a2
cmp eax, 3
jne 0x4089a2
mov edx, dword [esp + 0x30]
mov eax, 1
nop
mov ecx, dword [eax*8 + 0x450574]
mov edi, ecx
and edi, edx
cmp edi, ecx
je 0x408979
add eax, 1
cmp eax, 5
jb 0x408960
jmp 0x408984
mov eax, dword [eax*8 + 0x450578]
cmp eax, ebx
jne 0x408989
mov eax, dword [0x450578]
push eax
lea ecx, [esp + 0x14]
call fcn.004131f0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea edx, [esp + 0x1c]
lea edi, [esi + 0x2f0]
push edx
mov ecx, edi
mov byte [esp + 0xb0], 2
call sub.MFC80U.DLL_Ordinal_3756
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_1472]
test eax, eax
je 0x4089f1
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_6063
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
mov dword [esp + 0xac], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x408a37
push 0x43c370
lea ecx, [esi + 0x2f0]
call sub.MFC80U.DLL_Ordinal_6063
mov ecx, dword [esp + 0x30]
and cl, 4
cmp cl, 4
sete dl
lea ecx, [esp + 0x18]
mov byte [esi + 0x78], dl
call fcn.004131e0
xor eax, eax
cmp byte [esi + 0x78], bl
lea ecx, [esp + 0x18]
setne al
mov dword [esp + 0xac], 3
add eax, 0xaa
push eax
call fcn.004131f0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea ecx, [esi + 0x440]
call sub.MFC80U.DLL_Ordinal_6063
xor ecx, ecx
cmp byte [esi + 0x78], bl
sete cl
push ecx
lea ecx, [esi + 0x3ec]
call sub.MFC80U.DLL_Ordinal_2155
mov eax, dword [esi + 0x4b4]
xor edx, edx
cmp word [esp + 0x34], bx
push ebx
setne dl
push edx
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x7c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0040dba0
cmp eax, ebx
jl 0x408b08
push 0x62
lea edx, [esp + 0x42]
push ebx
push edx
mov word [esp + 0x48], bx
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0xa
push 0x32
lea eax, [esp + 0x50]
push eax
push ecx
push edx
call dword [sym.imp.MSVCR80.dll__i64tow_s]
add esp, 0x20
lea eax, [esp + 0x3c]
push eax
jmp 0x408b0d
push 0x43c36c
lea ecx, [esi + 0x1f4]
call sub.MFC80U.DLL_Ordinal_6063
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esi + 0x20]
push ebx
push 0x1f4
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x408b3b
call sub.MFC80U.DLL_Ordinal_1894
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00412bbe
add esp, 0xa0
ret 4