Function at 0x45783c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495fb2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
add ecx, 4
mov dword [ebp - 0x14], eax
call fcn.0045b388
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x730
call fcn.0045eb78
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
add ecx, 0x864
call fcn.004103b0
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
add ecx, 0x868
call fcn.00457114
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + 0x9dc], edx
mov dword [eax + 0x9f0], edx
push edx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x101
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
add edx, 0x8d0
push edx
call fcn.0046566c
add esp, 8
mov dword [ebp - 0x64], 0x30
xor edx, edx
mov eax, dword [0x4b5fbc]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], 0x458250
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
push 0x7f00
push edx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x4c], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x48], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x44], eax
xor edx, edx
mov eax, dword [0x4a0320]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
push 0x7f00
push edx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov ecx, dword [0x4a0320]
xor ebx, ebx
mov edx, accept
push ebx
mov eax, 0xc8
push dword [0x4b5fbc]
push ebx
push ebx
push eax
push eax
push edx
push edx
push 0xcf0000
push ecx
push ecx
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, dword [ebp - 0x24]
test eax, eax
mov dword [edx + 0x870], eax
jne 0x4579e4
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edx + 0x9dc]
test eax, eax
je 0x457e53
test eax, eax
je 0x457a1b
push 0x4c27bc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x457a18
push 0
mov edx, dword [ebp - 0x24]
push dword [edx + 0x870]
call eax
mov edx, dword [ebp - 0x24]
jmp 0x457a1b
mov edx, dword [ebp - 0x24]
push edx
push 0xffffffffffffffeb
push dword [edx + 0x870]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x24]
push dword [eax + 0x870]
call dword [edx + 0x60]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 4]
push dword [eax]
call fcn.0045e400
test eax, eax
jne 0x457a78
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x730]
push dword [eax]
call fcn.0045f5b0
test eax, eax
jne 0x457ab8
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 0x138]
test eax, eax
jne 0x457adf
push 0
mov eax, dword [ebp - 0x24]
push 0x1388
push 1
push dword [eax + 0x870]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x868]
push dword [eax]
call fcn.00457390
test eax, eax
jne 0x457b1f
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], edx
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0xf8], 0x94
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xe8]
cmp eax, 2
jne 0x457c4e
mov eax, dword [ebp - 0xf4]
cmp eax, 5
jne 0x457bd5
mov eax, dword [ebp - 0xf0]
cmp eax, 1
jb 0x457bd5
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
push eax
push ebx
push 1
push 0x4c27dc
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
push 0x31
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x9d4], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
push eax
push ebx
push 1
push 0x4c27e8
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x9d4], 0
mov dword [edx + 0x9d8], eax
je 0x457d2b
test eax, eax
je 0x457cf7
jmp 0x457cc5
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x90
push eax
push ebx
push 1
push 0x4c27dc
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
push 0x31
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x9d4], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x90
push eax
push ebx
push 1
push 0x4c27e8
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x9d4], 0
mov dword [edx + 0x9d8], eax
je 0x457d9f
test eax, eax
je 0x457d65
jmp 0x457cc5
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x90
push eax
push ebx
push 1
push 0x4c27dc
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
push 0x31
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x9d4], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x90
push eax
push ebx
push 1
push 0x4c27e8
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x9d4], 0
mov dword [edx + 0x9d8], eax
je 0x457e16
test eax, eax
je 0x457ddc
push 0x68
push dword [0x4b5fbc]
call dword [sym.imp.USER32.dll_LoadMenuA]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x874], eax
call fcn.0045908c
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push eax
push ebx
push 1
push 0x86
push dword [0x4b5fbc]
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x9d8], eax
jmp 0x457cc5
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push eax
push ebx
push 1
push 0x66
push dword [0x4b5fbc]
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x9d4], eax
mov eax, dword [edx + 0x9d8]
jmp 0x457bc8
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x80
push eax
push ebx
push 1
push 0x86
push dword [0x4b5fbc]
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x9d8], eax
jmp 0x457cc5
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x80
push eax
push ebx
push 1
push 0x66
push dword [0x4b5fbc]
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x9d4], eax
mov eax, dword [edx + 0x9d8]
jmp 0x457c44
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x80
push eax
push ebx
push 1
push 0x86
push dword [0x4b5fbc]
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x9d8], eax
jmp 0x457cc5
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x80
push eax
push ebx
push 1
push 0x66
push dword [0x4b5fbc]
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x9d4], eax
mov eax, dword [edx + 0x9d8]
jmp 0x457cbd
push 0x4c27ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x9dc], eax
jmp 0x4579f2