Function at 0x407220
Capabilities:
Create process on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
xor edi, edi
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], edi
push 8
call fcn.00414f9a
mov esi, eax
add esp, 4
cmp esi, edi
je 0x407235
push 1
call fcn.00414f9a
add esp, 4
cmp eax, edi
je 0x407245
mov dword [esi], eax
mov byte [eax], 0
mov dword [esi + 4], edi
mov dword [ebp - 8], edi
cmp dword [0x42e1e4], edi
jle 0x407b28
cmp byte [ebp - 1], 0
jne 0x407358
push 0x2a
call fcn.004051a0
mov eax, dword [0x42f218]
mov ebx, dword [0x42e1e8]
mov ecx, dword [eax + 0xa8]
mov eax, dword [ebx + edi*4]
add esp, 4
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4072b2
test dl, dl
je 0x4072ae
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4072b2
add eax, 2
add ecx, 2
test dl, dl
jne 0x407292
xor eax, eax
jmp 0x4072b7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407413
inc edi
mov byte [ebp - 1], 1
mov dword [ebp - 8], edi
cmp edi, dword [0x42e1e4]
jge 0x407413
mov edi, dword [ebx + edi*4]
push 0x42a698
mov dword [ebp - 0x14], edi
call fcn.00404350
mov eax, edi
add esp, 4
lea edx, [eax + 1]
jmp 0x4072f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4072f0
mov ecx, dword [esi + 4]
sub eax, edx
mov edx, dword [esi]
mov edi, eax
lea ebx, [ecx + edi + 1]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push ebx
push eax
call fcn.0041507f
add esp, 8
test eax, eax
je 0x407307
mov dword [esi], eax
mov eax, dword [esi + 4]
lea ecx, [eax + edi]
cmp eax, ecx
jae 0x407342
mov ecx, dword [ebp - 0x14]
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 0x407330
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov byte [eax + ecx], 0
push 0x42a69c
jmp 0x407408
mov edx, dword [0x42e1e8]
mov eax, dword [edx + edi*4]
push 0x42a6a0
push eax
mov byte [ebp - 9], 0
call fcn.004151b0
add esp, 8
test eax, eax
je 0x407388
push 0x42a698
mov byte [ebp - 9], 1
call fcn.00404350
add esp, 4
mov eax, dword [0x42e1e8]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x18], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407396
mov ecx, dword [esi + 4]
sub eax, edx
mov edx, dword [esi]
mov edi, eax
lea ebx, [ecx + edi + 1]
mov dword [ebp - 0x10], edx
lea ecx, [ecx]
mov eax, dword [ebp - 0x10]
push ebx
push eax
call fcn.0041507f
add esp, 8
test eax, eax
je 0x4073b0
mov dword [esi], eax
mov eax, dword [esi + 4]
lea ecx, [eax + edi]
cmp eax, ecx
jae 0x4073e4
mov ecx, dword [ebp - 0x18]
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 0x4073d2
add dword [esi + 4], edi
cmp byte [ebp - 9], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov byte [eax + ecx], 0
je 0x407403
push 0x42a698
call fcn.00404350
add esp, 4
push 0x42a6a0
call fcn.00404350
mov edi, dword [ebp - 8]
add esp, 4
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [0x42e1e4]
jl 0x40726a
cmp byte [ebp - 1], 0
je 0x407b28
push 0x36
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0xd8]
add esp, 4
push 0x37
mov dword [ebp - 0xc0], eax
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0xdc]
add esp, 4
push 0x38
mov dword [ebp - 0xbc], edx
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0xe0]
add esp, 4
push 0x39
mov dword [ebp - 0xb8], ecx
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0xe4]
add esp, 4
push 0x3a
mov dword [ebp - 0xb4], eax
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0xe8]
add esp, 4
push 0x3b
mov dword [ebp - 0xb0], edx
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0xec]
add esp, 4
push 0x3c
mov dword [ebp - 0xac], ecx
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0xf0]
add esp, 4
push 0x3d
mov dword [ebp - 0xa8], eax
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0xf4]
add esp, 4
push 0x3e
mov dword [ebp - 0xa4], edx
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0xf8]
add esp, 4
push 0x3f
mov dword [ebp - 0xa0], ecx
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0xfc]
add esp, 4
push 0x40
mov dword [ebp - 0x9c], eax
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0x100]
add esp, 4
push 0x41
mov dword [ebp - 0x98], edx
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0x104]
add esp, 4
push 0x42
mov dword [ebp - 0x94], ecx
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0x108]
add esp, 4
push 0x43
mov dword [ebp - 0x90], eax
call fcn.004051a0
add esp, 4
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0x10c]
push 0x44
mov dword [ebp - 0x8c], edx
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0x110]
add esp, 4
push 0x45
mov dword [ebp - 0x88], ecx
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0x114]
add esp, 4
push 0x46
mov dword [ebp - 0x84], eax
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0x118]
add esp, 4
push 0x47
mov dword [ebp - 0x80], edx
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0x11c]
add esp, 4
push 0x48
mov dword [ebp - 0x7c], ecx
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0x120]
add esp, 4
push 0x49
mov dword [ebp - 0x78], eax
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0x124]
add esp, 4
push 0x4a
mov dword [ebp - 0x74], edx
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0x128]
add esp, 4
push 0x4b
mov dword [ebp - 0x70], ecx
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0x12c]
add esp, 4
push 0x4c
mov dword [ebp - 0x6c], eax
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0x130]
add esp, 4
push 0x4d
mov dword [ebp - 0x68], edx
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0x134]
add esp, 4
push 0x4e
mov dword [ebp - 0x64], ecx
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0x138]
add esp, 4
push 0x4f
mov dword [ebp - 0x60], eax
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0x13c]
add esp, 4
push 0x50
mov dword [ebp - 0x5c], edx
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0x140]
add esp, 4
mov dword [ebp - 0x58], ecx
push 0x51
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0x144]
add esp, 4
push 0x52
mov dword [ebp - 0x54], eax
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0x148]
add esp, 4
push 0x53
mov dword [ebp - 0x50], edx
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0x14c]
add esp, 4
push 0x55
mov dword [ebp - 0x4c], ecx
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0x154]
add esp, 4
push 0x56
mov dword [ebp - 0x48], eax
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0x158]
add esp, 4
push 0x57
mov dword [ebp - 0x44], edx
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0x15c]
add esp, 4
push 0x58
mov dword [ebp - 0x40], ecx
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0x160]
add esp, 4
push 0x59
mov dword [ebp - 0x3c], eax
call fcn.004051a0
mov ecx, dword [0x42f218]
mov edx, dword [ecx + 0x164]
add esp, 4
push 0x5a
mov dword [ebp - 0x38], edx
call fcn.004051a0
mov eax, dword [0x42f218]
mov ecx, dword [eax + 0x168]
add esp, 4
push 0x5b
mov dword [ebp - 0x34], ecx
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0x16c]
mov ebx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x30], eax
xor edi, edi
mov ecx, dword [ebp + edi*4 - 0xc0]
push ecx
push ebx
call fcn.004151b0
add esp, 8
test eax, eax
jne 0x407b47
inc edi
cmp edi, 0x25
jb 0x4077f3
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407817
sub eax, edx
lea edi, [eax + 1]
push edi
call fcn.00414f9a
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x407823
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407838
sub eax, edx
lea edi, [eax + 1]
push edi
call fcn.00414f9a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407844
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407860
sub eax, edx
lea edx, [eax + eax + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00414f9a
mov edi, eax
add esp, 4
test edi, edi
je 0x407870
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
push 0
push 0
push ebx
push ecx
push edx
call fcn.0041645b
mov eax, dword [ebp - 8]
add esp, 0x14
push ebx
push eax
push 0x4277c0
push edi
call fcn.0041512c
push edi
call fcn.004164d9
mov ecx, dword [ebp - 8]
add esp, 0x14
push ecx
call fcn.00414f60
add esp, 4
push ebx
call fcn.00414f60
add esp, 4
push edi
call fcn.00414f60
add esp, 4
mov edi, edi
push 0x105
call fcn.00414f9a
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
je 0x4078d0
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40790c
mov edx, dword [0x42e1e8]
mov ecx, dword [edx]
mov edx, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x407902
push 4
call fcn.004051a0
mov eax, dword [0x42f218]
mov eax, dword [eax + 0x10]
add esp, 4
push eax
call fcn.00415e1b
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x407935
mov dword [ebp - 0x18], 0x4275bc
mov ebx, dword [ebp - 0x14]
push 0x427570
push ebx
call fcn.00414000
mov edi, eax
add esp, 8
test edi, edi
je 0x407974
push 2
push 0
push edi
call fcn.004146d2
add esp, 0xc
push edi
call fcn.004145e3
add esp, 4
push edi
mov ebx, eax
call fcn.004147bb
mov edi, ebx
mov ebx, dword [ebp - 0x14]
add esp, 4
jmp 0x407976
xor edi, edi
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], edi
mov eax, ebx
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4079a0
test dl, dl
je 0x40799c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4079a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x407980
xor eax, eax
jmp 0x4079a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407adc
call fcn.0040a810
push eax
push ebx
call fcn.004151b0
add esp, 8
test eax, eax
jne 0x407adc
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
call fcn.004151b0
add esp, 8
test eax, eax
jne 0x407adc
push 0x2c
call fcn.004051a0
mov edx, dword [0x42f218]
mov eax, dword [edx + 0xb0]
add esp, 4
push eax
push ebx
call fcn.004151b0
add esp, 8
test eax, eax
jne 0x407adc
push 0x2e
call fcn.004051a0
mov eax, dword [0x42f218]
mov eax, dword [eax + 0xb8]
add esp, 4
push eax
call fcn.0041524c
add esp, 4
cmp edi, eax
jbe 0x407adc
push 0x2f
call fcn.004051a0
mov ecx, dword [0x42f218]
mov eax, dword [ecx + 0xbc]
add esp, 4
push eax
call fcn.0041524c
add esp, 4
cmp edi, eax
jae 0x407adc
lea ecx, [ebp - 0x10]
mov eax, ebx
call section..text
mov edi, eax
test edi, edi
je 0x407adc
push 0x2d
call fcn.004051a0
mov eax, dword [ebp - 0x10]
mov edx, dword [0x42f218]
mov edx, dword [edx + 0xb4]
add esp, 4
test eax, eax
je 0x407aaf
lea ecx, [eax - 1]
cmp ecx, 0x45
jb 0x407aaf
xor ecx, ecx
add eax, 0xffffffba
mov dword [ebp - 0x10], eax
je 0x407aaf
xor eax, eax
lea ebx, [eax + ecx]
mov bl, byte [ebx + edi]
cmp bl, byte [eax + edx]
jne 0x407aa6
inc eax
cmp eax, 0x45
jb 0x407a93
jmp 0x407ad3
inc ecx
cmp ecx, dword [ebp - 0x10]
jb 0x407a91
mov ebx, dword [ebp - 0x14]
push 0x2b
call fcn.004051a0
mov eax, dword [0x42f218]
mov edx, dword [ebp - 8]
mov ecx, dword [eax + 0xac]
add esp, 4
push edx
push ecx
mov eax, ebx
call fcn.00403580
add esp, 8
push edi
call fcn.00414f60
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.00414f60
mov edi, dword [esi]
add esp, 4
push 0x44
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00418380
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x108]
push edx
push eax
push eax
push 0x100
push eax
push eax
push eax
push edi
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esi]
mov dword [esi + 4], 0
test eax, eax
je 0x407b3e
push eax
call fcn.00414f60
add esp, 4
push esi
call fcn.00414f60
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret