Function at 0x489390
Capabilities:
Check if file exists
Check os version
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esi + 0x188], 0
mov dword [0x5419d0], esi
mov dword [esi + 0x118], eax
call fcn.004bdc70
push 0xffffff
push 0
mov ecx, esi
call fcn.004bfd60
mov ecx, dword [esi + 0x118]
push 0xca
push ecx
mov ecx, esi
call fcn.004c0e70
mov edx, dword [esi + 0x118]
push 0x23
push 0x2d6
push 0
push 0
push 1
push edx
mov ecx, esi
call fcn.004bfbb0
mov eax, dword [0x5419d8]
mov ecx, dword [esi + 0x118]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edx, [ebp - 0x324]
push edx
mov dword [ebp - 0x324], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x48943d
cmp dword [ebp - 0x320], 6
jb 0x48943d
mov byte [esi + 0x188], 1
mov eax, dword [esi + 0x118]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [0x5418f8]
and eax, 0xfffaffff
cmp byte [esi + 0x188], 0
mov dword [ebp - 0x328], 0
jne 0x48946e
test ecx, ecx
je 0x489473
cmp ecx, 1
jne 0x489482
and eax, 0xff3fffff
mov dword [ebp - 0x328], 1
mov ecx, dword [esi + 0x118]
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [esi + 0x118]
push 2
push 0x12c
push 0x190
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x118]
lea eax, [ebp - 0x340]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
call edi
push 0x11
mov dword [ebp - 0x348], eax
call edi
mov edi, dword [ebp - 0x338]
mov ebx, dword [ebp - 0x334]
sub edi, dword [ebp - 0x340]
sub ebx, dword [ebp - 0x33c]
lea edx, [ebp - 0x340]
mov dword [ebp - 0x32c], eax
mov eax, dword [esi + 0x118]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x340]
sub ecx, dword [ebp - 0x338]
mov edx, dword [ebp - 0x33c]
sub edx, dword [ebp - 0x334]
push 0
add edi, ecx
push 0x158
mov ecx, esi
add ebx, edx
call fcn.004bfbf0
push 0
push 0x4886a0
push 0
push 0
push 0
push 0x2d7
lea ecx, [esi + 0x24]
push 0x15b
call fcn.004c3440
push 2
mov ecx, eax
call fcn.004bfaa0
push 0
push 0x488680
push 0
push 0
push 0
push 0x2fc
push 0x15a
lea ecx, [esi + 0x24]
call fcn.004c3440
push 2
mov ecx, eax
call fcn.004bfaa0
lea eax, [ebp - 0x340]
push eax
mov ecx, esi
call fcn.004bfd20
xor eax, eax
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x330], eax
cmp dword [ebp - 0x328], eax
je 0x4895c9
mov dword [ebp - 0x330], 0x23
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x344], 6
jmp 0x4895dd
mov dword [ebp - 0x338], 0x31a
mov dword [ebp - 0x334], 0x258
lea ecx, [eax + 0x5a]
push ecx
push 0x316
push eax
push 0
lea edx, [esi + 0x16c]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x338]
mov ecx, dword [ebp - 0x334]
add edi, eax
mov eax, dword [ebp - 0x348]
sub eax, edi
cdq
sub eax, edx
add ebx, ecx
mov ecx, eax
mov eax, dword [ebp - 0x32c]
sub eax, ebx
push 0
cdq
push ebx
sub eax, edx
mov edx, dword [esi + 0x118]
push edi
sar eax, 1
push eax
sar ecx, 1
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x5427b4]
push 0xcb
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
cmp dword [ebp - 0x328], 0
mov dword [esi + 0x148], eax
je 0x489678
push 0xffffff
push 1
mov ecx, esi
call fcn.004bfd60
push 1
mov ecx, esi
mov dword [esi + 0xe4], 0
call fcn.004c0fc0
mov edx, dword [0x5427f0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5427f0
call eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
add eax, 0x10
push 0
mov dword [ebp - 0x328], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x210]
push 0x5c
push edx
call fcn.004ea650
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea ecx, [esi + 0x184]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x32c], ecx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4896d1
sub eax, edi
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.00467410
lea ecx, [ebp - 0x210]
push ecx
lea eax, [esi + 0x180]
push 0x5118a4
push eax
call fcn.0046cc40
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x328]
push str._shtmlayout.dll
push eax
call fcn.0046cc40
mov ecx, dword [ebp - 0x328]
add esp, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48973b
mov byte [esi + 0x17c], 1
jmp 0x489742
mov byte [esi + 0x17c], 0
mov ebx, dword [ebp - 0x330]
mov edi, dword [ebp - 0x344]
lea edx, [ebx + 0xda]
push edx
lea ecx, [edi + 0xb6]
push ecx
lea edx, [ebx + 0x59]
push edx
lea eax, [esi + 0x14c]
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [ebx + 0x258]
push ecx
lea edx, [edi + 0x31a]
push edx
push ebx
lea eax, [esi + 0x15c]
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 1
mov ecx, 0x542730
call fcn.004bce60
mov ecx, 0x542730
call fcn.004bcef0
cmp byte [esi + 0x17c], 0
je 0x4898f8
push 0x70
call fcn.004eb0f9
add esp, 4
test eax, eax
je 0x4897c5
mov ecx, eax
call fcn.00489020
jmp 0x4897c7
xor eax, eax
push 0
push ecx
mov dword [esi + 0x144], eax
mov eax, esp
push 0
push 0x56000000
push 0
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x14c]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x144]
push eax
call fcn.00489310
push 0x354
call fcn.004eb0f9
add esp, 4
test eax, eax
je 0x489815
mov ecx, eax
call fcn.0047c8d0
jmp 0x489817
xor eax, eax
mov ecx, dword [esi + 0x144]
push ecx
mov ecx, eax
mov dword [esi + 0x140], eax
call fcn.0045fb00
mov edx, dword [esi + 0x118]
mov ecx, dword [esi + 0x140]
push edx
call fcn.0045fb70
push 0
push ecx
mov eax, esp
push 0
push 0x56000000
push 0
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x15c]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x140]
push eax
call fcn.00489290
mov ecx, dword [esi + 0x180]
push ecx
mov ecx, dword [esi + 0x140]
call fcn.0047e7c0
mov edx, dword [esi + 0x148]
push 0
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [esi + 0x140]
push eax
call fcn.00462970
cmp byte [esi + 0x188], 0
mov eax, dword [0x5418f8]
jne 0x4898ae
test eax, eax
je 0x4898b3
cmp eax, 1
jne 0x4898c0
mov ecx, dword [esi + 0x140]
push 1
call fcn.004603e0
mov ecx, dword [esi + 0x144]
call fcn.0049c400
sub esp, 0x1c
mov ecx, esp
push 1
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push 0x52b19c
mov byte [ecx + 4], 0
call fcn.00401900
mov ecx, 0x542730
call fcn.004bcf90
push str.RabbitLobby
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test esi, esi
je 0x489928
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x489980
mov edx, dword [ebp - 0x32c]
push str.RabbitLobby.exe
push edx
lea eax, [ebp - 0x32c]
push eax
call fcn.0046d520
mov esi, dword [ebp - 0x32c]
add esp, 0xc
push 5
push 0
push 0x511838
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489980
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x328]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4899a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 4