Function at 0x412250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424a7e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x431078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.00403eb0
mov ecx, eax
test ecx, ecx
je 0x4126dc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push esi
mov dword [ebp - 4], ebx
call fcn.004119a0
test al, al
jne 0x4122d0
test esi, esi
jne 0x4122b2
xor ecx, ecx
jmp 0x4122c6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4122b7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00405390
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.00412960
mov edi, eax
mov esi, dword [edi]
movzx ecx, word [esi]
push ecx
call fcn.004184e0
add esp, 4
test eax, eax
je 0x412307
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.004184e0
add esp, 4
test eax, eax
jne 0x4122f3
mov edx, dword [edi]
cmp esi, edx
je 0x4123dd
mov eax, dword [edx - 0xc]
sub esi, edx
sar esi, 1
mov dword [ebp - 0x20], eax
test eax, eax
js 0x4126f0
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, dword [edx - 0xc]
or eax, ecx
jge 0x412341
push dword [ebp - 0x20]
mov ecx, edi
call fcn.00404f50
mov edx, dword [edi]
lea eax, [edx + esi*2]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 0xc]
sub eax, esi
mov dword [ebp - 0x18], eax
lea esi, [eax + eax]
lea ecx, [esi + 2]
mov dword [ebp - 0x14], esi
test ecx, ecx
je 0x4123b1
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x41237b
call fcn.004167b7
mov dword [eax], 0x16
call fcn.004166de
lea eax, [esi + 0x16]
mov esi, dword [ebp - 0x14]
jmp 0x4123b3
mov eax, dword [edx - 0xc]
lea eax, [eax*2 + 2]
cmp eax, ecx
jae 0x4123a3
call fcn.004167b7
mov dword [eax], 0x22
call fcn.004166de
mov esi, dword [ebp - 0x14]
mov eax, 0x22
jmp 0x4123b3
push ecx
push esi
push edx
call fcn.00413f40
mov esi, dword [ebp - 0x14]
add esp, 0xc
xor eax, eax
push eax
call fcn.00402d10
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
js 0x4126f0
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x4126f0
mov dword [ecx - 0xc], eax
xor ecx, ecx
mov eax, dword [edi]
mov word [esi + eax], cx
mov byte [ebp - 4], 2
call fcn.00403eb0
mov ecx, eax
test ecx, ecx
je 0x4126e6
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
push 4
push dword [ebp - 0x10]
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
or esi, 0xffffffff
test eax, eax
jne 0x4125e3
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov edx, eax
test edx, edx
jne 0x412428
xor ecx, ecx
jmp 0x41243f
mov ecx, edx
lea edi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412430
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x18]
call fcn.00405390
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
je 0x412578
mov edx, dword [ebp - 0x10]
mov ebx, 0
add edx, 0xfffffff0
mov eax, dword [edx + 4]
sub eax, dword [edi - 0xc]
sets bl
dec ebx
and ebx, eax
cmp ebx, dword [edx + 4]
jl 0x412486
push edx
call fcn.0040bfc0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
jmp 0x41253b
mov ecx, dword [edx]
test ecx, ecx
je 0x4124a2
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4124a2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
jmp 0x4124c1
call fcn.00403eb0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x4126ff
test eax, eax
jne 0x4124cd
test ebx, ebx
jne 0x4126f0
mov eax, dword [ecx]
push 2
push ebx
call dword [eax]
test eax, eax
je 0x4126fa
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
test ebx, ebx
js 0x4126f0
cmp ebx, dword [esi - 8]
jg 0x4126f0
mov dword [esi - 0xc], ebx
xor eax, eax
add ebx, ebx
mov word [ebx + esi], ax
test ebx, ebx
je 0x41253b
test esi, esi
je 0x41252b
mov eax, dword [ebp - 0x14]
push ebx
test eax, eax
je 0x41251a
push eax
push esi
call fcn.00413f40
add esp, 0xc
jmp 0x41253b
push 0
push esi
call fcn.00414d90
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x41253b
call fcn.004167b7
mov dword [eax], 0x16
call fcn.004166de
mov ebx, 4
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b7f0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412570
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.00412960
mov eax, dword [ebp - 0x10]
mov edx, dword [eax - 0xc]
test edx, edx
js 0x4126f0
cmp word [eax], 0x22
jne 0x4125e3
lea ecx, [edx - 1]
test ecx, ecx
js 0x4126f0
cmp ecx, edx
jg 0x4126f0
cmp word [eax + ecx*2], 0x22
jne 0x4125e3
lea eax, [edx - 2]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d0a0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0040b7f0
mov edx, dword [ebp - 0x20]
mov eax, esi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4125e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 0xc], 0
lea eax, [edi - 0x10]
mov dword [ebp - 0x24], eax
jne 0x412626
call fcn.00403eb0
mov ecx, eax
test ecx, ecx
je 0x4126ff
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0
push 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00405390
mov esi, dword [ebp - 0x14]
or ebx, 1
mov edi, dword [ebp - 0x24]
mov eax, esi
jmp 0x41263a
push eax
call fcn.0040bfc0
mov esi, dword [ebp - 0x14]
add eax, 0x10
add esp, 4
mov edi, eax
or ebx, 2
push 1
push 0
push eax
push dword [ebp - 0x10]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x20], eax
test bl, 2
je 0x412673
lea edx, [edi - 0x10]
and ebx, 0xfffffffd
or edi, 0xffffffff
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x412676
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x412676
or edi, 0xffffffff
test bl, 1
je 0x412692
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412692
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x20], 0x20
mov eax, edi
mov edx, dword [ebp - 0x24]
setg bl
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4126b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4126c8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402f20
push 0x80004005
call fcn.00402f20
push 0x80070057
call fcn.00402f20
call fcn.004055f0
push 0x80004005
call fcn.00402f20
int3