Function at 0x1002458
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
xor eax, eax
push 0x11
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
cmp dword [ebp + 0x14], esi
mov byte [ebp - 0x15c], 0
mov byte [ebp - 0x260], 0
mov dword [ebp - 0x58], 0x44
stosd dword es:[edi], eax
je 0x100252d
push 0x104
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push esi
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0100345a
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x460]
push eax
push esi
push esi
push dword [ebp + 8]
call fcn.0100345a
lea eax, [ebp - 0x360]
add esp, 0x28
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024f0
sub eax, edx
mov dword [ebp + 8], eax
lea eax, [ebp - 0x360]
jne 0x1002509
mov eax, 0x10011fc
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.010033ca
add esp, 0x14
jmp 0x1002542
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x15c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1002538
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
je 0x100259a
lea eax, [ebp - 0x15c]
mov word [ebp - 0x260], 0x22
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100255a
lea edi, [ebp - 0x260]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100256a
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x260]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002589
mov esi, 0x10011f8
movsw word es:[edi], word [esi]
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x10025e8
cmp ebx, esi
je 0x10025b9
lea edi, [ebp - 0x260]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10025aa
mov esi, 0x10011f4
movsw word es:[edi], word [esi]
mov eax, dword [ebp + 0xc]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025be
lea edi, [ebp - 0x260]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10025ce
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 8
push esi
push esi
neg ebx
push esi
lea eax, [ebp - 0x260]
sbb ebx, ebx
push eax
lea eax, [ebp - 0x15c]
not ebx
and ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x100267c
cmp dword [ebp + 0x18], esi
je 0x1002668
cmp dword [ebp + 0x1c], esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [ebp + 0x20]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
je 0x100263c
push ebx
call esi
test eax, eax
je 0x100263c
push 6
push ebx
call edi
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x1c], 0
je 0x1002659
push ebx
call esi
test eax, eax
je 0x1002659
push 9
push ebx
call edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x100267c
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x1c