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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b129e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_CDialog::OnInitDialog
mov eax, dword [esi + 0x7c]
mov ebx, 0xa
test eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x3ff00000
je 0x4056e5
mov dword [esp + 0x28], 0x3ff80000
mov eax, dword [0x56fa28]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x405884
mov esi, 0x56df6c
mov ebp, dword [esi - 0x14]
mov eax, str.SPACER
mov edi, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x40572d
test cl, cl
je 0x405729
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x40572d
add eax, 2
add edi, 2
test cl, cl
jne 0x405709
xor eax, eax
jmp 0x405732
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405750
fild dword [esi - 0x10]
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
add ebx, eax
mov dword [esi + 8], 0
jmp 0x405866
mov edi, ebp
mov eax, 0x570054
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x40577b
test cl, cl
je 0x405777
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x40577b
add eax, 2
add edi, 2
test cl, cl
jne 0x405757
xor eax, eax
jmp 0x405780
sbb eax, eax
sbb eax, 0xffffffff
xor ebp, ebp
cmp eax, ebp
jne 0x4057a9
fild dword [esi - 0x10]
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x14]
mov ebx, 0xa
add ecx, eax
mov dword [esi + 8], ebp
mov dword [esp + 0x14], ecx
jmp 0x405866
mov eax, dword [esi - 4]
xor edi, edi
cmp eax, ebp
je 0x4057b7
mov edi, 1
push 0x8e0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov dword [esp + 0x58], ebp
je 0x4057e9
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi - 0x14]
push edx
mov edx, dword [esi - 8]
push ecx
push edi
push edx
mov ecx, eax
call sub.ConnectDialog13.dll_public:_void___thiscall_KeyboardButton::constructor_unsigned_int__int__char_const___unsigned_int__unsigned_int_
mov ebp, eax
mov dword [esi + 8], ebp
mov dword [esp + 0x58], 0xffffffff
fild dword [esi - 0x10]
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
fild dword [esi - 0xc]
mov edi, eax
add edi, ebx
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x5000
push 0
push ecx
mov ecx, dword [esi - 0x14]
lea edx, [esp + 0x38]
push edi
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], eax
mov eax, dword [ebp]
push 0x50000000
push ecx
mov ecx, ebp
call dword [eax + 0xd8]
fild dword [esi - 0x10]
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
add ebx, eax
mov eax, dword [edi + 0x78]
inc eax
mov dword [edi + 0x78], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x56fa28]
inc eax
add esi, 0x30
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4056ff
mov esi, dword [esp + 0x18]
mov edx, dword [0x56f6c8]
mov ebx, 0xa
mov dword [esp + 0x14], ebx
cmp byte [edx], 0
je 0x405a60
mov eax, 0x56f6c8
mov dword [esp + 0x1c], 0x5000
xor esi, esi
mov edi, dword [eax]
mov eax, str.SPACER
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4058d6
test cl, cl
je 0x4058d2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4058d6
add eax, 2
add edi, 2
test cl, cl
jne 0x4058b2
xor eax, eax
jmp 0x4058db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4058ff
fild dword [esi + 0x56f6cc]
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
add ebx, eax
mov dword [esi + 0x56f6e4], 0
jmp 0x405a3b
mov edi, dword [esi + 0x56f6c8]
mov eax, 0x570054
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x40592e
test cl, cl
je 0x40592a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x40592e
add eax, 2
add edi, 2
test cl, cl
jne 0x40590a
xor eax, eax
jmp 0x405933
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405964
fild dword [esi + 0x56f6cc]
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x14]
mov ebx, 0xa
add ecx, eax
mov dword [esi + 0x56f6e4], 0
mov dword [esp + 0x14], ecx
jmp 0x405a3b
mov eax, dword [esi + 0x56df68]
xor edi, edi
test eax, eax
je 0x405975
mov edi, 1
push 0x8e0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x58], 1
je 0x4059ba
mov ecx, dword [esi + 0x56f6dc]
mov edx, dword [esi + 0x56f6e0]
push ecx
mov ecx, dword [esi + 0x56f6c8]
push edx
mov edx, dword [esi + 0x56f6d4]
push ecx
push edi
push edx
mov ecx, eax
call sub.ConnectDialog13.dll_public:_void___thiscall_KeyboardButton::constructor_unsigned_int__int__char_const___unsigned_int__unsigned_int_
mov ebp, eax
jmp 0x4059bc
xor ebp, ebp
mov dword [esi + 0x56f6e4], ebp
mov dword [esp + 0x58], 0xffffffff
fild dword [esi + 0x56f6cc]
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
fild dword [esi + 0x56f6d0]
mov edi, eax
add edi, ebx
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x1c]
push 0
push ecx
lea ecx, [esp + 0x38]
push edx
mov edx, dword [esi + 0x56f6c8]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
mov eax, dword [ebp]
push ecx
push 0x58000000
push edx
mov ecx, ebp
call dword [eax + 0xd8]
fild dword [esi + 0x56f6cc]
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
add ebx, eax
mov ebp, dword [esp + 0x1c]
add esi, 0x30
inc ebp
mov ecx, dword [esi + 0x56f6c8]
lea eax, [esi + 0x56f6c8]
mov dword [esp + 0x1c], ebp
cmp byte [ecx], 0
jne 0x4058ab
mov esi, dword [esp + 0x18]
mov edx, dword [0x56fa30]
mov ebp, 0xa
mov ebx, ebp
cmp byte [edx], 0
je 0x405bfa
mov eax, 0x56fa30
mov esi, 0x56fa4c
mov edi, dword [eax]
mov eax, str.SPACER
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x405aab
test cl, cl
je 0x405aa7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x405aab
add eax, 2
add edi, 2
test cl, cl
jne 0x405a87
xor eax, eax
jmp 0x405ab0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405ad1
fild dword [esi - 0x18]
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
add ebp, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jmp 0x405be4
mov edi, dword [esi - 0x1c]
mov eax, 0x570054
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x405afd
test cl, cl
je 0x405af9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x405afd
add eax, 2
add edi, 2
test cl, cl
jne 0x405ad9
xor eax, eax
jmp 0x405b02
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405b28
fild dword [esi - 0x18]
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
add ebx, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0xc], eax
mov ebp, 0xa
mov dword [esi + 0x10], eax
jmp 0x405be4
push 0x8e8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x58], 2
je 0x405b62
mov ecx, dword [esi + 4]
mov edx, dword [esi - 4]
push ecx
mov ecx, dword [esi - 0x1c]
push edx
mov edx, dword [esi - 0x10]
push ecx
push 0
push edx
mov ecx, eax
call sub.ConnectDialog13.dll_public:_void___thiscall_NumpadButton::constructor_unsigned_int__int__char_const___unsigned_int__unsigned_int_
mov edi, eax
jmp 0x405b64
xor edi, edi
mov dword [esi + 0xc], edi
mov dword [esp + 0x58], 0xffffffff
fild dword [esi - 0x18]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
fild dword [esi - 0x14]
add eax, ebp
mov dword [esp + 0x48], eax
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x18]
add ecx, 0x5000
push 0
push ecx
add eax, ebx
lea ecx, [esp + 0x48]
push edx
mov edx, dword [esi - 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [edi]
push ecx
push 0x40000000
push edx
mov ecx, edi
call dword [eax + 0xd8]
mov eax, dword [esi + 8]
lea eax, [eax + eax*2]
shl eax, 4
mov ecx, dword [eax + 0x56df74]
mov dword [esi + 0x10], ecx
fild dword [esi - 0x18]
fmul qword [esp + 0x24]
call sub.MSVCRT.dll__ftol
add ebp, eax
add esi, 0x30
mov edx, dword [esi - 0x1c]
lea eax, [esi - 0x1c]
cmp byte [edx], 0
jne 0x405a80
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x7c]
push 2
test eax, eax
jne 0x405c19
mov eax, dword [sym.imp.MFC42.DLL_CWndconstCWnd::wndTop]
push 0x140
push 0x267
push 0
push 0
push eax
jmp 0x405c2e
mov ecx, dword [sym.imp.MFC42.DLL_CWndconstCWnd::wndTop]
push 0x190
push 0x38e
push 0
push 0
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowPos
mov ecx, esi
call fcn.004069c0
mov ecx, dword [esp + 0x50]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret