Function at 0x4462b0
Capabilities:
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4702ed
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x480208]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.read
push 4
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 9
jne 0x4462f4
xor eax, eax
jmp 0x4466f7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
cmp eax, 0x8000
jne 0x446313
xor eax, eax
jmp 0x4466f7
call fcn.00445cf0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00446130
mov dword [ebp - 0xbc], 0x4460e0
push 0
call fcn.00401240
add esp, 4
push eax
call fcn.00452918
add esp, 4
call fcn.004528f7
cdq
mov ecx, 0x1389
idiv ecx
add edx, 0x2710
mov dword [ebp - 0xa0], edx
push str.Z:TeamViewerSourcesCpp_source.cpp
lea ecx, [ebp - 0x78]
call fcn.00448880
mov dword [ebp - 4], 0
push 0x4716cc
lea ecx, [ebp - 0x78]
call fcn.0044a850
push eax
call fcn.0045652b
add esp, 8
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x4466cf
lea edx, [ebp - 0xd0]
push edx
call fcn.00401240
add esp, 4
lea eax, [ebp - 0xd0]
push eax
call fcn.00401220
add esp, 4
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
push ecx
push str._Y__m__d__H:_M:_S
push 0x50
lea edx, [ebp - 0x60]
push edx
call fcn.00456bfa
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
call fcn.0044b880
add esp, 4
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.00445920
add esp, 4
mov edx, dword [0x481094]
mov dword [ebp - 0xa8], edx
mov eax, dword [0x481098]
mov dword [ebp - 0xa4], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xcf0000
push 0
push str.button
push 0
call dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x138]
push ecx
call dword [ebp - 0xa8]
cmp dword [ebp - 0x134], 0x31f
jne 0x44648c
call fcn.00415e50
mov dword [ebp - 0x94], eax
call fcn.00415e40
push eax
mov edx, dword [ebp - 0x94]
push edx
call fcn.00446060
add esp, 8
mov eax, dword [ebp - 0x94]
push eax
call fcn.00445a10
add esp, 4
push 0
call fcn.004528e1
jmp 0x4466cf
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xb4], 0xa
push 0x30
push 0
lea ecx, [ebp - 0x100]
push ecx
call fcn.0044ed80
add esp, 0xc
mov dword [ebp - 0x100], 0x30
mov dword [ebp - 0xfc], 3
mov dword [ebp - 0xf8], 0x4460e0
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0xec], edx
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], 6
push 0x4716f4
lea eax, [ebp - 0x88]
push eax
call fcn.004482a0
add esp, 8
mov ecx, eax
call fcn.0044a7e0
mov dword [ebp - 0xd8], eax
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
movzx edx, ax
test edx, edx
jne 0x44656b
push 0x10
push 0x471704
push str.Failed_to_register_window_class_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0xac], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00449260
mov eax, dword [ebp - 0xac]
jmp 0x4466f7
push 0
mov eax, dword [ebp - 0x90]
push eax
push 0
push 0
push 0x12c
push 0x190
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Sample_Window_with_Button_and_Checkbox
push str.MyWindowClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x4465ea
push 0x10
push str.Error
push str.Failed_to_create_window_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0xb0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00449260
mov eax, dword [ebp - 0xb0]
jmp 0x4466f7
push 0
mov ecx, dword [ebp - 0x90]
push ecx
push 0
mov edx, dword [ebp - 0x8c]
push edx
push 0x1e
push 0x64
push 0xa
push 0xa
push 0x50010000
push str.Click_Me
push 0x471814
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc4], eax
push 0
mov eax, dword [ebp - 0x90]
push eax
push 0
mov ecx, dword [ebp - 0x8c]
push ecx
push 0x1e
push 0x64
push 0x32
push 0xa
push 0x50010003
push str.Checkbox
push str.BUTTON
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4466ac
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x446679
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00449260
mov eax, dword [ebp - 0xb8]
jmp 0x4466f7
push 0
call fcn.004528e1
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00449260
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044deb0
mov esp, ebp
pop ebp
ret