Function at 0x406720
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov byte [ebp - 0x321], 0
mov dword [ebp - 0x328], edi
push 8
call fcn.00413e95
mov esi, eax
add esp, 4
cmp esi, edi
je 0x406745
push 1
call fcn.00413e95
add esp, 4
cmp eax, edi
je 0x406755
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [ebp - 0x330], edi
cmp dword [0x42b124], edi
jle 0x407095
cmp byte [ebp - 0x321], 0
jne 0x406878
push 0x28
call fcn.00404a40
mov eax, dword [0x42c160]
mov ebx, dword [0x42b128]
mov ecx, dword [eax + 0xa0]
mov eax, dword [ebx + edi*4]
add esp, 4
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4067c5
test dl, dl
je 0x4067c1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4067c5
add eax, 2
add ecx, 2
test dl, dl
jne 0x4067a5
xor eax, eax
jmp 0x4067ca
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40694f
inc edi
mov byte [ebp - 0x321], 1
mov dword [ebp - 0x330], edi
cmp edi, dword [0x42b124]
jge 0x40694f
mov edi, dword [ebx + edi*4]
push 0x427cbc
mov dword [ebp - 0x328], edi
call fcn.00403c30
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406807
mov ecx, dword [esi + 4]
sub eax, edx
mov edx, dword [esi]
mov edi, eax
lea ebx, [ecx + edi + 1]
mov dword [ebp - 0x32c], edx
mov eax, dword [ebp - 0x32c]
push ebx
push eax
call fcn.00413f29
add esp, 8
test eax, eax
je 0x406821
mov dword [esi], eax
mov eax, dword [esi + 4]
lea ecx, [eax + edi]
cmp eax, ecx
jae 0x406862
mov ecx, dword [ebp - 0x328]
sub ecx, eax
lea esp, [esp]
mov edx, dword [esi]
mov bl, byte [ecx + eax]
mov byte [eax + edx], bl
mov edx, dword [esi + 4]
inc eax
add edx, edi
cmp eax, edx
jb 0x406850
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov byte [eax + ecx], 0
push 0x427cc0
jmp 0x406941
mov edx, dword [0x42b128]
mov eax, dword [edx + edi*4]
push 0x427cc4
push eax
mov byte [ebp - 0x322], 0
call fcn.004146e0
add esp, 8
test eax, eax
je 0x4068ae
push 0x427cbc
mov byte [ebp - 0x322], 1
call fcn.00403c30
add esp, 4
mov eax, dword [0x42b128]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x334], eax
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068c0
mov ecx, dword [esi + 4]
sub eax, edx
mov edx, dword [esi]
mov edi, eax
lea ebx, [ecx + edi + 1]
mov dword [ebp - 0x32c], edx
lea ebx, [ebx]
mov eax, dword [ebp - 0x32c]
push ebx
push eax
call fcn.00413f29
add esp, 8
test eax, eax
je 0x4068e0
mov dword [esi], eax
mov eax, dword [esi + 4]
lea ecx, [eax + edi]
cmp eax, ecx
jae 0x40691a
mov ecx, dword [ebp - 0x334]
sub ecx, eax
mov edx, dword [esi]
mov bl, byte [ecx + eax]
mov byte [eax + edx], bl
mov edx, dword [esi + 4]
inc eax
add edx, edi
cmp eax, edx
jb 0x406908
add dword [esi + 4], edi
cmp byte [ebp - 0x322], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov byte [eax + ecx], 0
je 0x40693c
push 0x427cbc
call fcn.00403c30
add esp, 4
push 0x427cc4
call fcn.00403c30
mov edi, dword [ebp - 0x330]
add esp, 4
inc edi
mov dword [ebp - 0x330], edi
cmp edi, dword [0x42b124]
jl 0x40677a
cmp byte [ebp - 0x321], 0
je 0x407095
push 0x34
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0xd0]
add esp, 4
push 0x35
mov dword [ebp - 0x3e0], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0xd4]
add esp, 4
push 0x36
mov dword [ebp - 0x3dc], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0xd8]
add esp, 4
push 0x37
mov dword [ebp - 0x3d8], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0xdc]
add esp, 4
push 0x38
mov dword [ebp - 0x3d4], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0xe0]
add esp, 4
push 0x39
mov dword [ebp - 0x3d0], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0xe4]
add esp, 4
push 0x3a
mov dword [ebp - 0x3cc], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0xe8]
add esp, 4
push 0x3b
mov dword [ebp - 0x3c8], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0xec]
add esp, 4
push 0x3c
mov dword [ebp - 0x3c4], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0xf0]
add esp, 4
push 0x3d
mov dword [ebp - 0x3c0], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0xf4]
add esp, 4
push 0x3e
mov dword [ebp - 0x3bc], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0xf8]
add esp, 4
push 0x3f
mov dword [ebp - 0x3b8], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0xfc]
add esp, 4
push 0x40
mov dword [ebp - 0x3b4], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x100]
add esp, 4
push 0x41
mov dword [ebp - 0x3b0], eax
call fcn.00404a40
add esp, 4
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0x104]
push 0x42
mov dword [ebp - 0x3ac], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0x108]
add esp, 4
push 0x43
mov dword [ebp - 0x3a8], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x10c]
add esp, 4
push 0x44
mov dword [ebp - 0x3a4], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0x110]
add esp, 4
push 0x45
mov dword [ebp - 0x3a0], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0x114]
add esp, 4
push 0x46
mov dword [ebp - 0x39c], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x118]
add esp, 4
push 0x47
mov dword [ebp - 0x398], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0x11c]
add esp, 4
push 0x48
mov dword [ebp - 0x394], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0x120]
add esp, 4
push 0x49
mov dword [ebp - 0x390], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x124]
add esp, 4
push 0x4a
mov dword [ebp - 0x38c], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0x128]
add esp, 4
push 0x4b
mov dword [ebp - 0x388], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0x12c]
add esp, 4
push 0x4c
mov dword [ebp - 0x384], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x130]
add esp, 4
push 0x4d
mov dword [ebp - 0x380], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0x134]
add esp, 4
push 0x4e
mov dword [ebp - 0x37c], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0x138]
add esp, 4
mov dword [ebp - 0x378], ecx
push 0x4f
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x13c]
add esp, 4
push 0x50
mov dword [ebp - 0x374], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0x140]
add esp, 4
push 0x51
mov dword [ebp - 0x370], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0x144]
add esp, 4
push 0x53
mov dword [ebp - 0x36c], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x14c]
add esp, 4
push 0x54
mov dword [ebp - 0x368], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0x150]
add esp, 4
push 0x55
mov dword [ebp - 0x364], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0x154]
add esp, 4
push 0x56
mov dword [ebp - 0x360], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x158]
add esp, 4
push 0x57
mov dword [ebp - 0x35c], eax
call fcn.00404a40
mov ecx, dword [0x42c160]
mov edx, dword [ecx + 0x15c]
add esp, 4
push 0x58
mov dword [ebp - 0x358], edx
call fcn.00404a40
mov eax, dword [0x42c160]
mov ecx, dword [eax + 0x160]
add esp, 4
push 0x59
mov dword [ebp - 0x354], ecx
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x164]
mov ebx, dword [ebp - 0x328]
add esp, 4
mov dword [ebp - 0x350], eax
xor edi, edi
mov ecx, dword [ebp + edi*4 - 0x3e0]
push ecx
push ebx
call fcn.004146e0
add esp, 8
test eax, eax
jne 0x4070b4
inc edi
cmp edi, 0x25
jb 0x406d77
push eax
push eax
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.0041535c
add esp, 0x14
lea ecx, [ebp - 0x320]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x110]
push 0x425770
push eax
call fcn.00413fd6
lea ecx, [ebp - 0x110]
push ecx
call fcn.0041542b
add esp, 0x14
lea ecx, [ecx]
push 0x105
call fcn.00413e95
mov ebx, eax
add esp, 4
mov dword [ebp - 0x330], ebx
test ebx, ebx
je 0x406de0
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406e1f
mov edx, dword [0x42b128]
mov ecx, dword [edx]
mov edx, ebx
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x406e15
push 4
call fcn.00404a40
mov eax, dword [0x42c160]
mov eax, dword [eax + 0x10]
add esp, 4
push eax
call fcn.00414c6b
add esp, 4
mov dword [ebp - 0x334], eax
test eax, eax
jne 0x406e4e
mov dword [ebp - 0x334], 0x425582
mov ecx, dword [ebp - 0x328]
push 0x425550
push ecx
call fcn.00412efb
mov edi, eax
add esp, 8
test edi, edi
je 0x406e93
push 2
push 0
push edi
call fcn.004135cd
add esp, 0xc
push edi
call fcn.004134de
add esp, 4
push edi
mov ebx, eax
call fcn.004136b6
mov edi, ebx
mov ebx, dword [ebp - 0x330]
add esp, 4
jmp 0x406e95
xor edi, edi
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x32c], edi
mov ecx, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406ec3
test dl, dl
je 0x406ebf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406ec3
add eax, 2
add ecx, 2
test dl, dl
jne 0x406ea3
xor eax, eax
jmp 0x406ec8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40703d
call fcn.00409960
mov edx, dword [ebp - 0x328]
push eax
push edx
call fcn.004146e0
add esp, 8
test eax, eax
jne 0x40703d
mov eax, dword [ebp - 0x334]
mov ecx, dword [ebp - 0x328]
push eax
push ecx
call fcn.004146e0
add esp, 8
test eax, eax
jne 0x40703d
push 0x2a
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0xa8]
add esp, 4
push eax
mov eax, dword [ebp - 0x328]
push eax
call fcn.004146e0
add esp, 8
test eax, eax
jne 0x40703d
push 0x2c
call fcn.00404a40
mov ecx, dword [0x42c160]
mov eax, dword [ecx + 0xb0]
add esp, 4
push eax
call fcn.00414dd2
add esp, 4
cmp edi, eax
jbe 0x40703d
push 0x2d
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0xb4]
add esp, 4
push eax
call fcn.00414dd2
add esp, 4
cmp edi, eax
jae 0x40703d
mov eax, dword [ebp - 0x328]
lea ecx, [ebp - 0x32c]
call section..text
mov dword [ebp - 0x334], eax
test eax, eax
je 0x40703d
push 0x2b
call fcn.00404a40
mov eax, dword [0x42c160]
mov edx, dword [eax + 0xac]
mov eax, dword [ebp - 0x32c]
add esp, 4
test eax, eax
je 0x406ffd
lea ecx, [eax - 1]
cmp ecx, 0x45
jb 0x406ffd
xor edi, edi
add eax, 0xffffffba
mov dword [ebp - 0x32c], eax
je 0x406ffd
mov ecx, dword [ebp - 0x334]
xor eax, eax
add ecx, edi
mov bl, byte [ecx + eax]
cmp bl, byte [eax + edx]
jne 0x406ff4
inc eax
cmp eax, 0x45
jb 0x406fe4
jmp 0x407028
inc edi
cmp edi, dword [ebp - 0x32c]
jb 0x406fda
push 0x29
call fcn.00404a40
mov eax, dword [0x42c160]
mov edx, dword [ebp - 0x330]
mov ecx, dword [eax + 0xa4]
mov eax, dword [ebp - 0x328]
add esp, 4
push edx
push ecx
call fcn.00402ea0
add esp, 8
mov edx, dword [ebp - 0x334]
push edx
call fcn.00413e5b
mov ebx, dword [ebp - 0x330]
add esp, 4
push ebx
call fcn.00413e5b
mov edi, dword [esi]
add esp, 4
push 0x44
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00417250
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x344]
push ecx
lea edx, [ebp - 0x428]
push edx
push eax
push eax
push 0x100
push eax
push eax
push eax
push edi
push eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x338], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esi]
mov dword [esi + 4], 0
test eax, eax
je 0x4070ab
push eax
call fcn.00413e5b
add esp, 4
push esi
call fcn.00413e5b
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e08
mov esp, ebp
pop ebp
ret