Function at 0x40d3f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ea4e
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x49d4b0]
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 + 0x610], 0
je 0x40d43e
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 + 0x5d8]
test ecx, ecx
je 0x40db42
mov eax, dword [ecx]
lea edx, [ebp - 0x110]
push edx
call dword [eax + 0x28]
mov byte [ebp - 4], 1
mov edx, dword [eax]
cmp word [edx], 0
jne 0x40d47f
xor ecx, ecx
jmp 0x40d493
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d484
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00406b00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
mov eax, dword [ebp - 0x110]
cmp eax, ecx
je 0x40d4ba
push eax
call fcn.0045f9a9
add esp, 4
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.00401d90
mov edi, eax
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x40d4fc
cmp dword [ebp - 0x5c], 8
jb 0x40d4df
push dword [ebp - 0x70]
call fcn.0045f8c1
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.00406610
cmp dword [ebp - 0x14], 8
jb 0x40d50d
push dword [ebp - 0x28]
call fcn.0045f8c1
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 0x40d535
push 1
push 0x4885dc
lea ecx, [ebp - 0x70]
call fcn.00403a80
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x40db42
lea ecx, [ebp - 0x70]
call fcn.00401880
test al, al
je 0x40db42
lea edi, [esi + 0x5a0]
lea eax, [ebp - 0x70]
cmp edi, eax
je 0x40d566
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00406790
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.00406790
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.00401c00
add esp, 0x18
lea edi, [esi + 0x448]
mov ecx, edi
push eax
call fcn.00403420
cmp dword [ebp - 0x14], 0x10
jb 0x40d5b3
push dword [ebp - 0x28]
call fcn.0045f8c1
add esp, 4
lea ebx, [esi + 0x388]
mov edx, edi
push ebx
lea ecx, [ebp - 0x58]
call fcn.00412860
add esp, 4
push 0x4885b0
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004047d0
add esp, 4
lea ecx, [esi + 0x400]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00412920
add esp, 4
lea ecx, [esi + 0x460]
push eax
call fcn.00403420
cmp dword [ebp - 0x2c], 0x10
jb 0x40d612
push dword [ebp - 0x40]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x40d635
push dword [ebp - 0x28]
call fcn.0045f8c1
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 0x40d65c
push dword [ebp - 0x58]
call fcn.0045f8c1
add esp, 4
push str.FRServerFRUpdateServer.exe
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00404320
add esp, 4
lea ecx, [esi + 0x490]
push eax
call fcn.00403420
cmp dword [ebp - 0x44], 0x10
jb 0x40d68b
push dword [ebp - 0x58]
call fcn.0045f8c1
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00412860
add esp, 4
push 0x4885b0
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004047d0
add esp, 4
push str.FeiRarService.exe
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.004047d0
add esp, 4
lea ecx, [esi + 0x4c0]
push eax
call fcn.00403420
cmp dword [ebp - 0x14], 0x10
jb 0x40d6e2
push dword [ebp - 0x28]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40d705
push dword [ebp - 0x40]
call fcn.0045f8c1
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 0x40d72c
push dword [ebp - 0x58]
call fcn.0045f8c1
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00412860
add esp, 4
push 0x4885b0
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.004047d0
add esp, 4
push str.FeiRarShell64.dll
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.004047d0
add esp, 4
lea ecx, [esi + 0x4d8]
push eax
call fcn.00403420
cmp dword [ebp - 0x14], 0x10
jb 0x40d783
push dword [ebp - 0x28]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40d7a6
push dword [ebp - 0x40]
call fcn.0045f8c1
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 0x40d7cd
push dword [ebp - 0x58]
call fcn.0045f8c1
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00412860
add esp, 4
push 0x4885b0
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.004047d0
add esp, 4
push str.FeiRarHelp.dll
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.004047d0
add esp, 4
lea ecx, [esi + 0x4f0]
push eax
call fcn.00403420
cmp dword [ebp - 0x14], 0x10
jb 0x40d824
push dword [ebp - 0x28]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40d847
push dword [ebp - 0x40]
call fcn.0045f8c1
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 0x40d86e
push dword [ebp - 0x58]
call fcn.0045f8c1
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00412860
add esp, 4
push 0x4885b0
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x40]
call fcn.004047d0
add esp, 4
push str.FeiRarHelp64.dll
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.004047d0
add esp, 4
lea ecx, [esi + 0x508]
push eax
call fcn.00403420
cmp dword [ebp - 0x14], 0x10
jb 0x40d8c5
push dword [ebp - 0x28]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40d8e8
push dword [ebp - 0x40]
call fcn.0045f8c1
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 0x40d90f
push dword [ebp - 0x58]
call fcn.0045f8c1
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00412860
add esp, 4
push 0x4885b0
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call fcn.004047d0
add esp, 4
push str.FeiRarUpdate.exe
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
call fcn.004047d0
add esp, 4
lea ecx, [esi + 0x4a8]
push eax
call fcn.00403420
cmp dword [ebp - 0x14], 0x10
jb 0x40d966
push dword [ebp - 0x28]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40d989
push dword [ebp - 0x40]
call fcn.0045f8c1
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 0x40d9b0
push dword [ebp - 0x58]
call fcn.0045f8c1
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00412860
add esp, 4
push 0x4885b0
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x40]
call fcn.004047d0
add esp, 4
lea ecx, [esi + 0x418]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00412920
add esp, 4
lea ecx, [esi + 0x478]
push eax
call fcn.00403420
cmp dword [ebp - 0x14], 0x10
jb 0x40da09
push dword [ebp - 0x28]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40da2c
push dword [ebp - 0x40]
call fcn.0045f8c1
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 0x40da53
push dword [ebp - 0x58]
call fcn.0045f8c1
add esp, 4
push ebx
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00412860
add esp, 4
push 0x4885b0
mov edx, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x40]
call fcn.004047d0
add esp, 4
push str.Reflective.dll
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x28]
call fcn.004047d0
add esp, 4
lea ecx, [esi + 0x520]
push eax
call fcn.00403420
cmp dword [ebp - 0x14], 0x10
jb 0x40daaa
push dword [ebp - 0x28]
call fcn.0045f8c1
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40dacd
push dword [ebp - 0x40]
call fcn.0045f8c1
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 0x40daf4
push dword [ebp - 0x58]
call fcn.0045f8c1
add esp, 4
push 0
push 0
push esi
push fcn.0040dc50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x17c
push ecx
mov ecx, esi
call fcn.00424720
mov ecx, dword [esi + 0x5bc]
test ecx, ecx
je 0x40db42
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]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5c], 8
jb 0x40db5a
push dword [ebp - 0x70]
call fcn.0045f8c1
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 + 0x5a0]
push eax
call fcn.00406790
xor edx, edx
lea ecx, [ebp - 0x88]
call fcn.00401c00
mov ecx, esp
mov dword [ebp - 4], 0x12
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x88]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406d70
cmp dword [esi + 0x54c], 0x10
lea edx, [esi + 0x538]
jb 0x40dbc9
mov edx, dword [edx]
push str.InstallPath
mov ecx, SysReAllocString
call fcn.00413860
add esp, 4
lea eax, [ebp - 0x88]
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.00406d70
push 0x488c20
mov edx, str.SOFTWAREFeiRar
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00413860
add esp, 0x1c
cmp dword [ebp - 0x74], 0x10
jb 0x40dc29
push dword [ebp - 0x88]
call fcn.0045f8c1
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.0045f8b2
mov esp, ebp
pop ebp
ret