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

Disassembly:
sub esp, 0x140
push ebx
push ebp
push esi
push edi
mov ebx, eax
push 0x1e
mov edi, ebx
call fcn.0040a1b0
test al, al
je 0x405f77
push 0x12c
mov eax, ebx
call fcn.004096e0
call fcn.00409a20
test al, al
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x40567f
push 0x1c2
call ebp
call fcn.00409a20
test al, al
je 0x405698
call fcn.00409a20
test al, al
je 0x405698
push 0x1c2
call ebp
mov edi, ebx
call fcn.00409a20
test al, al
je 0x4056aa
push 0x1c2
call ebp
cmp dword [ebx + 0x20], 0
mov esi, dword [esp + 0x154]
jne 0x4056fe
mov eax, dword [esi*4 + 0x425998]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x41fc9c
push eax
call edi
push esi
call fcn.0040a310
mov ecx, dword [esi*4 + 0x425998]
push 0x41fcc0
push ecx
call edi
mov eax, ebx
call fcn.00412cc0
mov edx, dword [esi*4 + 0x425998]
push 0x41fce0
push edx
call edi
mov ecx, ebx
call fcn.004112a0
mov edi, ebx
call fcn.00409a20
test al, al
je 0x405710
push 0x1c2
call ebp
call fcn.00409a20
test al, al
je 0x405720
push 0x1c2
call ebp
lea eax, [esi*4 + 0x426d08]
push eax
lea ecx, [esp + 0x20]
push ecx
mov edi, 0x41fd7c
call fcn.00404600
mov edx, dword [eax]
mov eax, dword [esi*4 + 0x425998]
add esp, 8
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 0xfa
push eax
mov eax, 0x181
push eax
push 0
mov edi, ebx
call fcn.00402690
lea ebx, [ebx]
fld1
lea ecx, [esp + 0x130]
push ecx
lea edx, [esp + 0xf4]
push edx
sub esp, 8
fstp qword [esp]
push str.eedfde_050505
push 0x420830
push 0x127
push 0x68
push 0x101
push 0x47
push 0x42507c
lea eax, [esp + 0x48]
push eax
push 3
push 1
push 4
push ebx
call sub.MFC80U.DLL_Ordinal_3901
or esi, 0xffffffff
add esp, 0x40
cmp dword [esp + 0x1c], esi
je 0x4057cb
push 0x1f4
call ebp
jmp 0x405770
push 0x12c
mov eax, ebx
call fcn.004096e0
push ecx
mov ecx, esp
mov dword [esp + 0x8c], esp
push 0x41faac
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push ebx
call fcn.0040c780
test al, al
je 0x40584d
mov eax, ebx
call fcn.0040cf10
mov edi, dword [esp + 0x154]
mov ecx, dword [edi*4 + 0x425998]
push 0x41fd94
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, ebx
call fcn.004112a0
push edi
call fcn.0040a310
mov edi, ebx
call fcn.00409a20
test al, al
je 0x405836
push 0x1c2
call ebp
call fcn.00409a20
test al, al
je 0x405846
push 0x1c2
call ebp
push 0xea60
call ebp
push 0x1c2
call ebp
push ebx
call fcn.00409f80
test al, al
jne 0x405871
mov edi, edi
push 0x12c
call ebp
push ebx
call fcn.00409f80
test al, al
je 0x405860
mov edi, ebx
call fcn.0040bdc0
push 0x12c
mov eax, ebx
call fcn.004096e0
test al, al
jne 0x405d71
fld1
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x114]
push eax
sub esp, 8
fstp qword [esp]
push str.ffffff_2020200
push 0x41f960
push 0x168
push 0x40
push 0x13b
push 0x13
push 0x42507c
lea ecx, [esp + 0x58]
push ecx
push 3
push 1
push 4
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x40
cmp dword [esp + 0x2c], esi
push 5
je 0x405b3d
call ebp
fld1
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x94]
push eax
sub esp, 8
fstp qword [esp]
push str.000000_0000000
push 0x41fdb4
push 0xe5
push 0x119
push 0xa2
push 0x43
push 0x42507c
lea ecx, [esp + 0x5c]
push ecx
push 3
push 1
push 4
push ebx
mov esi, 0x5e
mov edi, 0x94
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x40
cmp dword [esp + 0x30], 0xffffffff
je 0x405a36
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0x98]
push ecx
push eax
push 0x42508c
lea edx, [esp + 0x64]
push edx
push 3
push 1
push 0x19
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x20
push 0x32
call ebp
push 0
lea eax, [esp + 0x88]
push eax
push 3
push 1
push 0x11
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x18
push 0x3e8
call ebp
push ebx
call fcn.004099b0
test al, al
je 0x4059e7
push 0x150
push 0x21
push 0x42508c
lea ecx, [esp + 0x6c]
push ecx
push 3
push 1
push 0x19
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x20
push 0x32
call ebp
push 0
lea edx, [esp + 0x90]
push edx
push 3
push 1
push 0x11
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x18
push 0x3e8
call ebp
push ebx
call fcn.00409ad0
test al, al
je 0x405a32
push 0x150
push 0x21
push 0x42508c
lea eax, [esp + 0x74]
push eax
push 3
push 1
push 0x19
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x20
push 0x32
call ebp
push 0
lea ecx, [esp + 0x38]
push ecx
push 3
push 1
push 0x11
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x18
push 0xbb8
call ebp
push 5
call ebp
fld1
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0xa4]
push eax
sub esp, 8
fstp qword [esp]
push str.000000_0000000
push 0x41fdb8
push 0x143
push 0xe8
push 0xa6
push 0x49
push 0x42507c
lea ecx, [esp + 0x4c]
push ecx
push 3
push 1
push 4
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x40
cmp dword [esp + 0x20], 0xffffffff
je 0x405d9f
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0xa8]
push ecx
push eax
push 0x42508c
lea edx, [esp + 0x7c]
push edx
push 3
push 1
push 0x19
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x20
push 0x32
call ebp
push 0
lea eax, [esp + 0x84]
push eax
push 3
push 1
push 0x11
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x18
push 0x3e8
call ebp
fld1
lea ecx, [esp + 0xe0]
push ecx
lea edx, [esp + 0x104]
push edx
sub esp, 8
fstp qword [esp]
push str.eedfde_050505
push 0x420830
push 0x127
push 0x68
push 0x101
push 0x47
push 0x42507c
lea eax, [esp + 0x50]
push eax
push 3
push 1
push 4
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x40
cmp dword [esp + 0x24], 0xffffffff
je 0x405eab
push 0x1f4
jmp 0x405ae0
call ebp
push ebx
call fcn.00409ad0
test al, al
jne 0x405d7a
push 0x1c2
call ebp
call fcn.00409a20
test al, al
je 0x405b64
push 0x1c2
call ebp
call fcn.00409a20
test al, al
je 0x405b74
push 0x1c2
call ebp
call fcn.00409a20
test al, al
je 0x405b84
push 0x1c2
call ebp
call fcn.00409a20
test al, al
je 0x405b94
push 0x1c2
call ebp
push 0x91
push 0x256
push 0x42508c
lea edx, [esp + 0x68]
push edx
push 3
push 1
push 0x19
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x20
push 0x32
call ebp
push 0
lea eax, [esp + 0x68]
push eax
push 3
push 1
push 0x11
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x18
push 0x3e8
call ebp
push 0x12
push 0x1b6
push 0x42508c
lea ecx, [esp + 0x4c]
push ecx
push 3
push 1
push 0x19
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x20
push 0x32
call ebp
push 0
lea edx, [esp + 0x70]
push edx
push 3
push 1
push 0x11
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x18
push 0x3e8
call ebp
fld1
sub esp, 0x18
fstp qword [esp + 0x10]
mov eax, esp
mov edi, 0x89
mov dword [eax], edi
mov ecx, 0x2a
mov edx, 0xde
mov dword [eax + 4], ecx
mov esi, 0x13e
mov dword [eax + 8], edx
push 0x41fdb0
mov dword [eax + 0xc], esi
push ebx
lea esi, [esp + 0x34]
mov edx, str.000000_0000000
call fcn.00401580
test eax, eax
je 0x405cb0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push 0x42508c
lea edx, [esp + 0x54]
push edx
push 3
push 1
push 0x19
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x20
push 0x32
call ebp
push 0
lea eax, [esp + 0x78]
push eax
push 3
push 1
push 0x14
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x18
push 0x3e8
call ebp
push 5
call ebp
push 5
call ebp
push 5
call ebp
jmp 0x405755
fld1
sub esp, 0x18
mov eax, esp
fstp qword [esp + 0x10]
mov dword [eax], edi
mov ecx, 0x2a
mov dword [eax + 4], ecx
mov ecx, 0xde
mov dword [eax + 8], ecx
push 0x41fdb0
mov ecx, 0x13e
push ebx
lea esi, [esp + 0x34]
mov edx, str.000000_0000000
mov dword [eax + 0xc], ecx
call fcn.00401580
test eax, eax
je 0x405d34
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push 0x42508c
lea eax, [esp + 0x5c]
push eax
push 3
push 1
push 0x19
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x20
push 0x32
call ebp
push 0
lea ecx, [esp + 0x80]
push ecx
push 3
push 1
push 0x14
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x18
push 0x3e8
jmp 0x405d63
mov ecx, 0xfa
push ecx
mov eax, 0x181
push eax
push 0
mov edi, ebx
call fcn.00402690
test al, al
jne 0x405d61
push 0x12c
mov eax, ebx
call fcn.004096e0
test al, al
je 0x405f5f
push 5
call ebp
push 5
call ebp
push 5
call ebp
push 5
call ebp
push 5
call ebp
jmp 0x405755
push 0x12c
call ebp
push 0x12c
mov eax, ebx
call fcn.004096e0
call fcn.00414720
push 5
call ebp
push 5
call ebp
jmp 0x405755
fld1
sub esp, 0x18
mov eax, esp
fstp qword [esp + 0x10]
mov dword [eax], esi
mov dword [eax + 4], edi
mov ecx, 0xd0
mov dword [eax + 8], ecx
push 0x41fdc0
mov ecx, 0x109
push ebx
lea esi, [esp + 0x34]
mov edx, str.000000_0000000
mov dword [eax + 0xc], ecx
call fcn.00401580
test eax, eax
je 0x405eab
fld1
sub esp, 0x18
mov eax, esp
fstp qword [esp + 0x10]
mov ecx, 0xed
mov dword [eax], ecx
mov ecx, 0xa1
mov dword [eax + 4], ecx
mov ecx, 0x1f9
mov dword [eax + 8], ecx
push 0x41fdb0
mov ecx, 0xe0
push ebx
mov edx, str.ffffff_0000000
mov dword [eax + 0xc], ecx
call fcn.00401580
test eax, eax
jne 0x405e60
push 0xc3
push 0x14f
push 0x42508c
lea ecx, [esp + 0x84]
push ecx
push 3
push 1
push 0x19
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x20
push 0x32
call ebp
push 0
lea edx, [esp + 0x3c]
push edx
push 3
push 1
push 0x11
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x18
push 0x3e8
call ebp
push ebx
call fcn.004099b0
test al, al
je 0x405eab
push 0x150
push 0x21
push 0x42508c
lea eax, [esp + 0x48]
push eax
push 3
push 1
push 0x19
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x20
push 0x32
call ebp
push 0
lea ecx, [esp + 0x48]
push ecx
push 3
push 1
push 0x11
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x18
push 0x1388
call ebp
push ebx
call fcn.004099b0
test al, al
jne 0x405ebf
push ebx
call fcn.00409ad0
test al, al
je 0x405f00
push 0x150
push 0x21
push 0x42508c
lea edx, [esp + 0x58]
push edx
push 3
push 1
push 0x19
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x20
push 0x32
call ebp
push 0
lea eax, [esp + 0x58]
push eax
push 3
push 1
push 0x11
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x18
push 0x1c2
call ebp
or esi, 0xffffffff
fld1
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x144]
push edx
sub esp, 8
fstp qword [esp]
push str.eedfde_050505
push 0x420830
push 0x127
push 0x68
push 0x101
push 0x47
push 0x42507c
lea eax, [esp + 0x54]
push eax
push 3
push 1
push 4
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x40
cmp dword [esp + 0x28], esi
je 0x405d6d
push 0x1f4
call ebp
jmp 0x405f03
push ebx
call fcn.00402e90
test al, al
je 0x405f70
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x20], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret 4