Function at 0x40efe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb1c7
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x4f86c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x614], 0
je 0x40f02e
push 0
push 0xbb8
push 0x3e8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x5dc]
test ecx, ecx
je 0x40f921
mov eax, dword [ecx]
lea edx, [ebp - 0x168]
push edx
call dword [eax + 0x28]
mov byte [ebp - 4], 1
mov edx, dword [eax]
cmp word [edx], 0
jne 0x40f06f
xor ecx, ecx
jmp 0x40f083
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f074
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00408930
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x164]
mov eax, dword [ebp - 0x168]
cmp eax, ecx
je 0x40f0aa
push eax
call fcn.004a8344
add esp, 4
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0xa0]
call fcn.00403ca0
mov edi, eax
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x40f0ef
cmp dword [ebp - 0x5c], 8
jb 0x40f0d2
push dword [ebp - 0x70]
call fcn.004a7f26
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00408440
cmp dword [ebp - 0x8c], 8
jb 0x40f106
push dword [ebp - 0xa0]
call fcn.004a7f26
add esp, 4
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x40f12e
push 1
push 0x4e67f8
lea ecx, [ebp - 0x70]
call fcn.00405a50
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x40f921
lea ecx, [ebp - 0x70]
call fcn.00403790
test al, al
je 0x40f921
lea edi, [esi + 0x5a4]
lea eax, [ebp - 0x70]
cmp edi, eax
je 0x40f15f
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.004085c0
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.004085c0
xor edx, edx
lea ecx, [ebp - 0x58]
call fcn.00403b10
add esp, 0x18
lea edi, [esi + 0x44c]
mov ecx, edi
push eax
call fcn.00402240
cmp dword [ebp - 0x44], 0x10
jb 0x40f1ac
push dword [ebp - 0x58]
call fcn.004a7f26
add esp, 4
lea ebx, [esi + 0x38c]
mov edx, edi
push ebx
lea ecx, [ebp - 0x58]
call fcn.00414fa0
add esp, 4
push 0x4e67cc
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004024d0
add esp, 4
lea ecx, [esi + 0x404]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00415060
add esp, 4
lea ecx, [esi + 0x464]
push eax
call fcn.00402240
cmp dword [ebp - 0x2c], 0x10
jb 0x40f20b
push dword [ebp - 0x40]
call fcn.004a7f26
add esp, 4
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x40f22e
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40f255
push dword [ebp - 0x58]
call fcn.004a7f26
add esp, 4
push str.FRServerFRUpdateServer.exe
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.004063a0
add esp, 4
lea ecx, [esi + 0x494]
push eax
call fcn.00402240
cmp dword [ebp - 0x44], 0x10
jb 0x40f284
push dword [ebp - 0x58]
call fcn.004a7f26
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00414fa0
add esp, 4
push 0x4e67cc
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004024d0
add esp, 4
push str.FeiRarService.exe
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.004024d0
add esp, 4
lea ecx, [esi + 0x4c4]
push eax
call fcn.00402240
cmp dword [ebp - 0x14], 0x10
jb 0x40f2db
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40f2fe
push dword [ebp - 0x40]
call fcn.004a7f26
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x40f325
push dword [ebp - 0x58]
call fcn.004a7f26
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00414fa0
add esp, 4
push 0x4e67cc
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.004024d0
add esp, 4
push str.FeiRarShell64.dll
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.004024d0
add esp, 4
lea ecx, [esi + 0x4dc]
push eax
call fcn.00402240
cmp dword [ebp - 0x14], 0x10
jb 0x40f37c
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40f39f
push dword [ebp - 0x40]
call fcn.004a7f26
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x40f3c6
push dword [ebp - 0x58]
call fcn.004a7f26
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00414fa0
add esp, 4
push 0x4e67cc
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.004024d0
add esp, 4
push str.FeiRarHelp.dll
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.004024d0
add esp, 4
lea ecx, [esi + 0x4f4]
push eax
call fcn.00402240
cmp dword [ebp - 0x14], 0x10
jb 0x40f41d
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40f440
push dword [ebp - 0x40]
call fcn.004a7f26
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x40f467
push dword [ebp - 0x58]
call fcn.004a7f26
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00414fa0
add esp, 4
push 0x4e67cc
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.004024d0
add esp, 4
push str.FeiRarHelp64.dll
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.004024d0
add esp, 4
lea ecx, [esi + 0x50c]
push eax
call fcn.00402240
cmp dword [ebp - 0x14], 0x10
jb 0x40f4be
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40f4e1
push dword [ebp - 0x40]
call fcn.004a7f26
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x40f508
push dword [ebp - 0x58]
call fcn.004a7f26
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00414fa0
add esp, 4
push 0x4e67cc
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call fcn.004024d0
add esp, 4
push str.FeiRarUpdate.exe
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
call fcn.004024d0
add esp, 4
lea ecx, [esi + 0x4ac]
push eax
call fcn.00402240
cmp dword [ebp - 0x14], 0x10
jb 0x40f55f
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40f582
push dword [ebp - 0x40]
call fcn.004a7f26
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x40f5a9
push dword [ebp - 0x58]
call fcn.004a7f26
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00414fa0
add esp, 4
push 0x4e67cc
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x40]
call fcn.004024d0
add esp, 4
lea ecx, [esi + 0x41c]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00415060
add esp, 4
lea ecx, [esi + 0x47c]
push eax
call fcn.00402240
cmp dword [ebp - 0x14], 0x10
jb 0x40f602
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40f625
push dword [ebp - 0x40]
call fcn.004a7f26
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x40f64c
push dword [ebp - 0x58]
call fcn.004a7f26
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00414fa0
add esp, 4
push 0x4e67cc
mov edx, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x40]
call fcn.004024d0
add esp, 4
push str.Reflective.dll
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x28]
call fcn.004024d0
add esp, 4
lea ecx, [esi + 0x524]
push eax
call fcn.00402240
cmp dword [ebp - 0x14], 0x10
jb 0x40f6a3
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40f6c6
push dword [ebp - 0x40]
call fcn.004a7f26
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x40f6ed
push dword [ebp - 0x58]
call fcn.004a7f26
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.00414fa0
add esp, 4
push 0x4e67cc
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x28]
call fcn.004024d0
add esp, 4
push str.FeiRar.exe
mov edx, eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xa0]
call fcn.004024d0
add esp, 4
cmp dword [ebp - 0x14], 0x10
jb 0x40f73b
push dword [ebp - 0x28]
call fcn.004a7f26
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0x16
cmp dword [ebp - 0x2c], 0x10
jb 0x40f762
push dword [ebp - 0x40]
call fcn.004a7f26
add esp, 4
sub esp, 0x18
mov dword [ebp - 0x2c], 0xf
mov ecx, esp
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
push str._PERPROCESSSYSTEMDPIFORCEOFF_HIGHDPIAWARE
call fcn.00401640
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push eax
call fcn.004161d0
add esp, 0x1c
lea ecx, [ebp - 0x58]
mov edx, edi
push ebx
call fcn.00414fa0
add esp, 4
push 0x4e67cc
mov edx, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xc8]
call fcn.004024d0
add esp, 4
push str.FeiRarG.exe
mov edx, eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x88]
call fcn.004024d0
add esp, 4
cmp dword [ebp - 0xb4], 0x10
jb 0x40f7f7
push dword [ebp - 0xc8]
call fcn.004a7f26
add esp, 4
mov dword [ebp - 0xb4], 0xf
mov dword [ebp - 0xb8], 0
mov byte [ebp - 0xc8], 0
mov byte [ebp - 4], 0x1b
cmp dword [ebp - 0x44], 0x10
jb 0x40f827
push dword [ebp - 0x58]
call fcn.004a7f26
add esp, 4
sub esp, 0x18
mov dword [ebp - 0x44], 0xf
mov ecx, esp
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
push str._PERPROCESSSYSTEMDPIFORCEOFF_HIGHDPIAWARE
call fcn.00401640
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.004161d0
add esp, 0x1c
push 0
push 0
push esi
push fcn.0040fa30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xb0]
xorps xmm0, xmm0
push eax
push dword [esi + 4]
movdqu xmmword [ebp - 0xb0], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xa8]
sub eax, dword [ebp - 0xb0]
push 0x16
push 0x17c
push eax
push 0
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x5c0]
test ecx, ecx
je 0x40f8e1
mov eax, dword [ecx]
push 1
call dword [eax + 0x1b4]
push 0
push 0x64
push 0x3e9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [ebp - 0x74], 0x10
jb 0x40f8f5
push dword [ebp - 0x88]
call fcn.004a7f26
add esp, 4
cmp dword [ebp - 0x8c], 0x10
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
jb 0x40f921
push dword [ebp - 0xa0]
call fcn.004a7f26
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5c], 8
jb 0x40f939
push dword [ebp - 0x70]
call fcn.004a7f26
add esp, 4
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x5a4]
push eax
call fcn.004085c0
xor edx, edx
lea ecx, [ebp - 0xe0]
call fcn.00403b10
mov ecx, esp
mov dword [ebp - 4], 0x1c
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xe0]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401720
cmp dword [esi + 0x550], 0x10
lea edx, [esi + 0x53c]
jb 0x40f9a8
mov edx, dword [edx]
push str.InstallPath
mov ecx, reloc.WS2_32.dll_accept
call fcn.00416120
add esp, 4
lea eax, [ebp - 0xe0]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401720
push 0x4e6ddc
mov edx, str.SOFTWAREFeiRar
mov ecx, reloc.WS2_32.dll_bind
call fcn.00416120
add esp, 0x1c
cmp dword [ebp - 0xcc], 0x10
jb 0x40fa0b
push dword [ebp - 0xe0]
call fcn.004a7f26
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a768e
mov esp, ebp
pop ebp
ret