Function at 0x401bd4
Capabilities:
Create thread
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x398
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x418750
lea ecx, [ebp - 0x338]
call fcn.00403b40
mov dword [ebp - 4], 0
mov dword [ebp - 0x128], 0
cmp dword [ebp + 0xc], 0
je 0x401c26
cmp dword [ebp + 0x10], 0
jne 0x401c4d
mov dword [ebp - 0x35c], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x338]
call fcn.00403b70
mov eax, dword [ebp - 0x35c]
jmp 0x402266
mov eax, dword [ebp + 0x14]
mov dword [0x418950], eax
mov ecx, dword [ebp + 0x20]
mov dword [0x415040], ecx
mov edx, dword [ebp + 0x24]
mov dword [0x415044], edx
mov eax, dword [ebp + 0x1c]
mov dword [0x418968], eax
mov ecx, dword [ebp + 8]
mov dword [0x41876c], ecx
push 0x63
mov edx, dword [ebp + 0xc]
push edx
push 0x418770
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x63
mov eax, dword [ebp + 0x10]
push eax
push 0x4187d4
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 8
push 0
push 0x418958
call fcn.0040a090
add esp, 0xc
push 8
push 0
push 0x418960
call fcn.0040a090
add esp, 0xc
push 0x10
push 0
push 0x41893c
call fcn.0040a090
add esp, 0xc
push 0x41893c
push 0x4187d4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x4187d4
push 0x418770
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x418770
call fcn.004095df
add esp, 0x14
push 0x104
lea ecx, [ebp - 0x330]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x401d56
push 0
push 0
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x330]
push ecx
call fcn.0040a3ba
add esp, 0x14
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x124]
push eax
push str._s_s
push 0x418838
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [ebp + 0x18], 0
je 0x401d7a
mov ecx, dword [ebp + 0x18]
push ecx
push 0x415454
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x401dfc
push 0x418838
push 0x415460
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x33c], eax
cmp dword [ebp - 0x33c], 0xffffffff
jne 0x401def
lea edx, [ebp - 0x330]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x330]
push eax
push str._skey.dat
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x401dfc
mov edx, dword [ebp - 0x33c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x33c], eax
cmp dword [ebp - 0x33c], 0xffffffff
je 0x402212
push 0
mov ecx, dword [ebp - 0x33c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0xffffffff
je 0x402205
mov edx, dword [ebp - 0x334]
push edx
call fcn.0040a3ac
add esp, 4
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
je 0x402205
mov dword [ebp - 0x118], 0
push 0
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x334]
push edx
mov eax, dword [ebp - 0x340]
push eax
mov ecx, dword [ebp - 0x33c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4021ea
mov edx, dword [ebp - 0x118]
cmp edx, dword [ebp - 0x334]
jne 0x4021ea
push 0x10
push 0
lea eax, [ebp - 0x350]
push eax
call fcn.0040a090
add esp, 0xc
lea ecx, [ebp - 0x350]
push ecx
push 0x20
push 0x4151cc
mov edx, dword [ebp - 0x334]
sub edx, 0x10
push edx
mov eax, dword [ebp - 0x340]
push eax
call fcn.004095df
add esp, 0x14
push 0x10
mov ecx, dword [ebp - 0x334]
mov edx, dword [ebp - 0x340]
lea eax, [edx + ecx - 0x10]
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.0040a300
add esp, 0xc
test eax, eax
jne 0x4021ea
cmp dword [0x41894c], 0
je 0x401f75
mov edx, dword [0x41894c]
mov dword [ebp - 0x368], edx
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x364], eax
cmp dword [ebp - 0x364], 0
je 0x401f6b
push 1
mov ecx, dword [ebp - 0x364]
mov edx, dword [ebp - 0x364]
mov eax, dword [edx]
call dword [eax]
mov dword [ebp - 0x398], eax
jmp 0x401f75
mov dword [ebp - 0x398], 0
push 0x70
call fcn.0040a3ac
add esp, 4
mov dword [ebp - 0x370], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x370], 0
je 0x401fa5
mov ecx, dword [ebp - 0x370]
call fcn.004056f9
mov dword [ebp - 0x39c], eax
jmp 0x401faf
mov dword [ebp - 0x39c], 0
mov ecx, dword [ebp - 0x39c]
mov dword [ebp - 0x36c], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x36c]
mov dword [0x41894c], edx
cmp dword [0x41894c], 0
je 0x4021ea
push 8
call fcn.0040a3ac
add esp, 4
mov dword [ebp - 0x378], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x378], 0
je 0x402011
push 1
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x378]
call fcn.00408194
mov dword [ebp - 0x3a0], eax
jmp 0x40201b
mov dword [ebp - 0x3a0], 0
mov ecx, dword [ebp - 0x3a0]
mov dword [ebp - 0x374], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x374]
mov dword [ebp - 0x354], edx
cmp dword [ebp - 0x354], 0
je 0x4021ea
mov dword [ebp - 0x358], 1
mov byte [ebp - 4], 3
mov eax, dword [0x41894c]
push eax
mov ecx, dword [ebp - 0x354]
push ecx
call fcn.00405f3c
add esp, 8
jmp 0x4020c8
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x354]
mov dword [ebp - 0x388], ecx
mov edx, dword [ebp - 0x388]
mov dword [ebp - 0x384], edx
cmp dword [ebp - 0x384], 0
je 0x402105
push 1
mov ecx, dword [ebp - 0x384]
call fcn.00403b90
mov dword [ebp - 0x3a8], eax
jmp 0x40210f
mov dword [ebp - 0x3a8], 0
cmp dword [ebp - 0x358], 1
jne 0x4021ea
lea eax, [ebp - 0x350]
push eax
push 0x4187d4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x4187d4
push 0x418770
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x418770
call fcn.004095df
add esp, 0x14
lea ecx, [ebp - 0x350]
push ecx
mov ecx, dword [0x41894c]
call fcn.00405e92
cmp eax, 1
jne 0x4021ea
mov dword [ebp - 0x128], 1
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x418974], eax
cmp dword [0x415040], 3
jne 0x4021c0
cmp dword [0x418974], 0
je 0x4021c0
push 0
push 0
push 0x402b94
call fcn.0040a1b2
add esp, 0xc
mov dword [0x418970], eax
cmp dword [0x418970], 0xffffffff
jne 0x4021c0
mov dword [0x418970], 0
push 0x418770
push 0x415478
mov ecx, dword [0x41894c]
call fcn.00405c18
push 0x4187d4
push str.AppVersion
mov ecx, dword [0x41894c]
call fcn.00405c18
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x38c], edx
mov eax, dword [ebp - 0x38c]
push eax
call fcn.0040a1a7
add esp, 4
mov ecx, dword [ebp - 0x33c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x128], 0
jne 0x402244
call fcn.00402af6
mov dword [ebp - 0x390], 0xfffffffb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x338]
call fcn.00403b70
mov eax, dword [ebp - 0x390]
jmp 0x402266
mov dword [ebp - 0x394], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x338]
call fcn.00403b70
mov eax, dword [ebp - 0x394]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret