Function at 0x43c410
Capabilities:
Create process on windows
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x28]
sub esp, 0xaf8
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, edx
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
cmp eax, edx
jne 0x43c433
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov dword [eax], edx
cmp ecx, edx
je 0x43c443
call fcn.0041c2e0
xor edx, edx
cmp ebx, edx
je 0x43c7d7
cmp byte [ebx], 0
je 0x43c7d7
cmp esi, edx
je 0x43c460
cmp byte [esi], 0
jne 0x43c460
mov dword [ebp + 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
cmp edi, edx
je 0x43c4ec
push 0x4adc00
push ebx
call fcn.00492c11
add esp, 8
test eax, eax
je 0x43c4e1
push 0x4adc08
push ebx
call fcn.00492c11
add esp, 8
test eax, eax
je 0x43c4e1
push 0x4ab8fc
push ebx
call fcn.00492c11
add esp, 8
test eax, eax
je 0x43c4e1
push 0x4ab8c8
push ebx
call fcn.00492c11
add esp, 8
test eax, eax
je 0x43c4e1
push 0x4adc10
push ebx
call fcn.00492c11
add esp, 8
test eax, eax
je 0x43c4e1
push 0x4adc18
push ebx
call fcn.00492c11
add esp, 8
test eax, eax
je 0x43c4e1
mov dword [ebp - 0x14], edi
jmp 0x43c5a1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
jmp 0x43c5a1
mov edi, 0x4aa2d4
mov eax, ebx
call fcn.004055c0
test eax, eax
je 0x43c5a1
sub eax, ebx
mov esi, eax
lea eax, [esi + 1]
call fcn.0049c750
mov eax, esp
push esi
push ebx
push eax
call fcn.0049b620
mov edi, eax
add esp, 0xc
mov byte [edi + esi], 0
cmp byte [edi], 0x2a
jne 0x43c527
inc edi
jmp 0x43c593
push 0x4adc00
push edi
call fcn.00492c11
add esp, 8
test eax, eax
je 0x43c593
push 0x4adc08
push edi
call fcn.00492c11
add esp, 8
test eax, eax
je 0x43c593
push 0x4ab8fc
push edi
call fcn.00492c11
add esp, 8
test eax, eax
je 0x43c593
push 0x4ab8c8
push edi
call fcn.00492c11
add esp, 8
test eax, eax
je 0x43c593
push 0x4adc10
push edi
call fcn.00492c11
add esp, 8
test eax, eax
je 0x43c593
push 0x4adc18
push edi
call fcn.00492c11
add esp, 8
test eax, eax
jne 0x43c5a1
mov dword [ebp - 0xc], edi
test edi, edi
je 0x43c5a1
lea eax, [esi + ebx + 1]
mov dword [ebp - 0x10], eax
xor esi, esi
cmp byte [ebp + 0x24], 0
mov byte [ebp - 5], 0
mov dword [ebp - 0x20], esi
je 0x43c613
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x64c]
test eax, eax
je 0x43c5c2
cmp dword [eax + 8], esi
jne 0x43c5e1
mov eax, dword [ecx + 0x658]
test eax, eax
je 0x43c5d1
cmp dword [eax + 8], esi
jne 0x43c5e1
mov eax, ecx
add eax, 0x660
call fcn.0043cb10
test al, al
jne 0x43c613
mov byte [ebp + 0x27], 1
cmp dword [ebp - 0xc], esi
je 0x43c617
cmp byte [ebp + 0x14], 0
je 0x43c602
mov ecx, dword [ebp + 8]
push 0x4a7935
push 0x4adc24
call fcn.0043b780
xor eax, eax
lea esp, [ebp - 0xb04]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov byte [ebp + 0x27], 0
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c620
sub eax, edx
mov dword [ebp - 0x1c], eax
cmp eax, 0x4001
jb 0x43c65b
cmp byte [ebp + 0x14], cl
je 0x43c64a
mov ecx, dword [ebp + 8]
push 0x4a7935
push 0x4adc4c
call fcn.0043b780
xor eax, eax
lea esp, [ebp - 0xb04]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp dword [ebp - 0xc], esi
jne 0x43c7fc
push 0x40
lea ecx, [ebp - 0xb8]
push 0
push ecx
call fcn.0049c1f0
mov esi, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 0xbc], 0x44
mov dword [ebp - 0x90], 1
test esi, esi
je 0x43c6a5
cmp byte [esi], 0
je 0x43c6a5
call fcn.0041ee10
mov word [ebp - 0x8c], ax
jmp 0x43c6b1
mov edx, 1
mov word [ebp - 0x8c], dx
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x43c6fe
cmp byte [eax], 0
je 0x43c6fe
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c6d2
mov ecx, dword [ebp - 0x1c]
sub eax, edx
lea eax, [eax + ecx + 0xa]
call fcn.0049c750
mov edx, dword [ebp + 0xc]
mov edi, esp
push edx
push ebx
push 0x4adc60
push edi
call fcn.00493c7e
add esp, 0x10
jmp 0x43c71a
mov eax, dword [ebp - 0x1c]
inc eax
call fcn.0049c750
mov edi, esp
mov edx, edi
mov eax, ebx
sub edx, ebx
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x43c710
cmp byte [ebp + 0x27], 0
je 0x43c762
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, dword [ebp + 0x28]
lea edx, [ebp - 5]
push edx
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
push ecx
mov cl, byte [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push edi
push eax
call fcn.0045be70
test eax, eax
jne 0x43c7f3
lea esp, [ebp - 0xb04]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0xbc]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x43c7eb
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x43c796
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
test eax, eax
je 0x43c7ae
push eax
mov eax, dword [ebp - 0x28]
call fcn.00401250
cmp byte [ebp + 0x20], 0
je 0x43c7c1
mov edx, dword [0x4b7a70]
mov dword [edx + 0x30], 0
cmp dword [ebp + 0x1c], 0
jne 0x43c7d7
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x43c7d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea esp, [ebp - 0xb04]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43c806
cmp byte [ebp - 5], 0
jne 0x43c7ae
mov esi, dword [ebp - 0x20]
cmp byte [ebp + 0x27], 0
jne 0x43ca01
push 0x38
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.0049c1f0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x70], 0x3c
mov dword [ebp - 0x6c], 0x440
mov dword [ebp - 0x58], ecx
test eax, eax
je 0x43c842
cmp byte [eax], 0
je 0x43c842
mov esi, eax
call fcn.0041ee10
mov dword [ebp - 0x54], eax
jmp 0x43c849
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x43c869
push 0x4adc18
push eax
mov dword [ebp - 0x64], eax
call fcn.00492c11
add esp, 8
test eax, eax
jne 0x43c869
or dword [ebp - 0x6c], 0xc
cmp dword [ebp - 0x14], 0
jne 0x43c97e
mov eax, dword [ebp - 0x1c]
inc eax
call fcn.0049c750
mov eax, dword [ebp - 0x10]
mov ebx, esp
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x43c885
cmp byte [ebx], 0x22
jne 0x43c8cb
lea esi, [ebx + 1]
push 0x22
push esi
call fcn.004945a1
add esp, 8
test eax, eax
je 0x43c8cb
mov byte [eax], 0
inc eax
cmp byte [eax], 0
mov dword [ebp - 0x10], esi
je 0x43c97e
cmp byte [eax], 0x20
mov dword [ebp - 0x14], eax
jne 0x43c97e
inc eax
mov dword [ebp - 0x14], eax
jmp 0x43c97e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43c8d9
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [ebx + 1]
push 0x20
push edx
call fcn.004945a1
mov edi, eax
add esp, 8
test edi, edi
je 0x43c95d
lea ecx, [ecx]
lea esi, [edi - 1]
cmp esi, ebx
jbe 0x43c911
movsx eax, byte [esi]
push eax
push 0x4adc68
call fcn.004945a1
add esp, 8
test eax, eax
jne 0x43c911
dec esi
cmp esi, ebx
ja 0x43c8f7
cmp byte [esi], 0x2e
jne 0x43c942
mov eax, edi
sub eax, esi
mov byte [edi], 0
cmp eax, 4
jne 0x43c934
push esi
mov eax, 0x4adc6c
call fcn.0047fa90
add esp, 4
test eax, eax
jne 0x43c956
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x43c956
mov byte [edi], 0x20
push 0x20
inc edi
push edi
call fcn.004945a1
mov edi, eax
add esp, 8
test edi, edi
jne 0x43c8f0
jmp 0x43c95d
inc edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0x10], 0
je 0x43c97e
mov eax, dword [0x4b8c90]
test eax, eax
je 0x43c972
mov eax, dword [eax]
test eax, eax
jne 0x43c977
mov eax, 0x4a7935
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x43c9f9
test byte [0x4bd6c4], 1
jne 0x43c9c6
or dword [0x4bd6c4], 1
push 0x4adc84
push 0x4adc94
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bd6c0], eax
jmp 0x43c9cb
mov eax, dword [0x4bd6c0]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
test ecx, ecx
je 0x43c7ae
cmp dword [ebp + 0x28], 0
je 0x43c7ae
test eax, eax
je 0x43c7ae
push ecx
call eax
mov ecx, dword [ebp + 0x28]
push ecx
jmp 0x43c7a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [ebp + 0x20], 0
je 0x43ca10
mov edx, dword [0x4b7a70]
mov dword [edx + 0x30], esi
cmp byte [ebp + 0x14], 0
je 0x43caf6
push 0
push 0x1ff
lea eax, [ebp - 0x2f4]
push eax
push 0
push esi
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp dword [ebp - 0xc], 0
je 0x43ca5c
mov ecx, dword [ebp - 0xc]
push ecx
push 0x4adca4
mov esi, 0x80
lea edi, [ebp - 0xf4]
call fcn.0047f710
add esp, 8
jmp 0x43ca63
mov byte [ebp - 0xf4], 0
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x43ca6f
mov ebx, 0x4a7935
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ca74
sub eax, edx
mov edi, 0x4aaf60
cmp eax, 0x190
ja 0x43ca8e
mov edi, 0x4a7935
mov esi, dword [ebp - 0x10]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ca96
sub eax, edx
mov ecx, 0x4aaf60
cmp eax, 0x190
ja 0x43cab0
mov ecx, 0x4a7935
cmp byte [ebp + 0x27], 0
mov eax, 0x4adcb0
jne 0x43cac0
mov eax, 0x4adcdc
push edi
push ebx
lea edx, [ebp - 0xf4]
push edx
push ecx
push esi
push eax
push 0x4add0c
mov esi, 0x800
lea edi, [ebp - 0xaf4]
call fcn.0047f710
add esp, 0x1c
lea eax, [ebp - 0x2f4]
push eax
mov ecx, edi
push ecx
mov ecx, dword [ebp + 8]
call fcn.0043b780
xor eax, eax
lea esp, [ebp - 0xb04]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24