Function at 0x412fc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x44405b
mov eax, dword fs:[0]
push eax
sub esp, 0xa2c
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0xa28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451050]
xor eax, esp
push eax
lea eax, [esp + 0xa40]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
jl 0x413258
mov ecx, dword [0x45a44c]
sub ecx, dword [0x45a448]
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x413258
jb 0x413033
call fcn.004344ed
imul esi, esi, 0xb4
add esi, dword [0x45a448]
cmp dword [0x4587d8], 0
je 0x41305e
test dword [esi], 0x40000000
je 0x413292
cmp dword [esi + 0x3c], 0
jne 0x413296
cmp dword [0x459fc0], 0
je 0x413258
test dword [esi], 0x40000000
mov ebp, 1
je 0x4131c4
mov edi, 8
cmp dword [esi + 0x94], edi
jb 0x413091
mov eax, dword [esi + 0x80]
jmp 0x413097
lea eax, [esi + 0x80]
call fcn.00408af0
test eax, eax
je 0x4131a9
cmp dword [esi + 0xb0], edi
jb 0x4130b4
mov eax, dword [esi + 0x9c]
jmp 0x4130ba
lea eax, [esi + 0x9c]
cmp dword [esi + 0x94], edi
jb 0x4130ca
mov ecx, dword [esi + 0x80]
jmp 0x4130d0
lea ecx, [esi + 0x80]
mov edx, dword [esi + 4]
push edx
push eax
lea eax, [esp + 0x844]
push 0x100
push eax
call fcn.004115e0
add esp, 0x10
test eax, eax
je 0x4131c4
cmp dword [esi + 0x94], edi
jb 0x413102
mov edi, dword [esi + 0x80]
jmp 0x413108
lea edi, [esi + 0x80]
lea eax, [esp + 0x34]
mov ecx, eax
mov edx, 0x404
sub edi, ecx
lea ecx, [edx + 0x7ffffbfa]
test ecx, ecx
je 0x413134
movzx ecx, word [edi + eax]
test cx, cx
je 0x413134
mov word [eax], cx
add eax, 2
sub edx, ebp
jne 0x413115
jmp 0x413138
test edx, edx
jne 0x41313b
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x413169
cmp word [esp + eax*2 + 0x32], 0x5c
je 0x413169
mov ecx, 0x5c
mov word [esp + eax*2 + 0x34], cx
inc eax
xor edx, edx
mov word [esp + eax*2 + 0x34], dx
mov ecx, 0x404
lea eax, [esp + 0x34]
cmp word [eax], 0
je 0x413183
add eax, 2
sub ecx, ebp
jne 0x413172
xor ebp, ebp
jmp 0x4131c4
test ecx, ecx
je 0x4131a5
mov eax, 0x404
sub eax, ecx
mov ecx, 0x404
sub ecx, eax
lea edx, [esp + eax*2 + 0x34]
lea eax, [esp + 0x83c]
call fcn.0040d850
xor ebp, ebp
jmp 0x4131c4
cmp dword [esi + 0x94], edi
jb 0x4131b9
mov ecx, dword [esi + 0x80]
jmp 0x4131bf
lea ecx, [esi + 0x80]
call fcn.004089a0
mov edi, dword [esi + 8]
mov ebx, dword [esi + 4]
test ebp, ebp
je 0x413233
cmp dword [esi + 0x94], 8
mov eax, dword [0x4524fc]
mov ebp, dword [0x452500]
mov dword [0x452500], edi
mov dword [esp + 0x14], eax
mov dword [0x4524fc], ebx
jb 0x4131fa
mov edx, dword [esi + 0x80]
jmp 0x413200
lea edx, [esi + 0x80]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [0x459f80]
call fcn.004127e0
mov edx, dword [esp + 0x18]
mov edi, dword [0x452500]
mov ebx, dword [0x4524fc]
add esp, 4
mov dword [0x452500], ebp
mov dword [0x4524fc], edx
test eax, eax
je 0x413258
push edi
lea eax, [esp + 0x38]
push ebx
push eax
xor ecx, ecx
call fcn.0040faf0
add esp, 0xc
test eax, eax
jne 0x413282
mov esi, dword [0x459f80]
mov ecx, 0x7d2b
call fcn.00408930
xor eax, eax
mov ecx, dword [esp + 0xa40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa28]
xor ecx, esp
call fcn.00433c32
add esp, 0xa38
ret
push 1
push edi
push ebx
lea eax, [esp + 0x40]
call fcn.00411580
add esp, 0xc
cmp dword [esi + 0x3c], 0
jbe 0x413339
lea edx, [esi + 0x44]
lea ecx, [esp + 0x18]
call fcn.00412c30
mov dword [esp + 0xa48], 0
mov ecx, dword [esp + 0x1c]
mov eax, 8
cmp dword [esp + 0x30], eax
jae 0x4132c6
lea ecx, [esp + 0x1c]
cmp dword [esi + 0x40], eax
jb 0x4132d0
mov eax, dword [esi + 0x2c]
jmp 0x4132d3
lea eax, [esi + 0x2c]
push 1
push 0
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x413309
mov esi, dword [0x459f80]
mov ecx, 0x7d2d
call fcn.00408930
lea esi, [esp + 0x18]
call fcn.004034a0
jmp 0x413258
test dword [esi], 0x80000000
je 0x413330
mov ecx, dword [0x459f80]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x413330
push 1
push 0
xor eax, eax
call fcn.00416ab0
add esp, 8
lea esi, [esp + 0x18]
call fcn.004034a0
mov eax, 1
jmp 0x41325a