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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d758e
mov eax, dword fs:[0]
push eax
mov eax, 0x15b8
mov dword fs:[0], esp
call fcn.004d0b30
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov edi, ecx
cmp eax, esi
jne 0x430166
lea eax, [ebp - 0x3c]
mov ecx, eax
mov dword [ecx], esi
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x20], eax
cmp ecx, esi
je 0x430179
call fcn.0041bc60
cmp edi, esi
je 0x4305ab
cmp word [edi], si
je 0x4305ab
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x430199
cmp word [eax], si
jne 0x430199
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], esi
cmp ebx, esi
je 0x430244
push str.find
push edi
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x430239
push str.7___7
call fcn.0049fc00
add esp, 4
push eax
push edi
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x430239
push str.open
push edi
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x430239
push str.edit
push edi
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x430239
push 0x4ecf24
call fcn.0049fc00
add esp, 4
push eax
push edi
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x430239
push str.___7__7_
call fcn.0049fc00
add esp, 4
push eax
push edi
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x430239
mov dword [ebp - 0x10], ebx
jmp 0x43031f
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
jmp 0x43031f
mov ebx, 0x4e6dc4
mov eax, edi
call fcn.00409df0
test eax, eax
je 0x43031f
sub eax, edi
sar eax, 1
lea ebx, [eax + eax]
lea eax, [ebx + 2]
call fcn.004cc950
mov eax, esp
push ebx
push edi
push eax
call fcn.004cd6c0
mov esi, eax
xor edx, edx
add esp, 0xc
mov word [ebx + esi], dx
cmp word [esi], 0x2a
jne 0x43028a
add esi, 2
jmp 0x430311
push str.find
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x430311
push str.7___7
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x430311
push str.open
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x430311
push str.edit
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x430311
push 0x4ecf24
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
je 0x430311
push str.___7__7_
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x43031f
mov dword [ebp - 0x18], esi
test esi, esi
je 0x43031f
lea eax, [ebx + edi + 2]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x38], ebx
cmp byte [ebp + 0x24], bl
je 0x43038c
mov eax, dword [esi + 0xb04]
test eax, eax
je 0x43033f
cmp dword [eax + 8], ebx
jne 0x43035d
mov eax, dword [esi + 0xb10]
test eax, eax
je 0x43034e
cmp dword [eax + 8], ebx
jne 0x43035d
lea eax, [esi + 0xb18]
call fcn.00430970
test al, al
jne 0x43038c
mov byte [ebp + 0x27], 1
cmp dword [ebp - 0x18], ebx
je 0x43038f
cmp byte [ebp + 0x14], bl
je 0x430385
push 0x4e1a4c
push 0x4ecf68
call fcn.0049fc00
add esp, 4
push eax
mov ecx, esi
call fcn.004768b0
xor eax, eax
jmp 0x4305b0
mov byte [ebp + 0x27], bl
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430395
sub eax, edx
sar eax, 1
mov dword [ebp - 0x24], eax
cmp eax, 0x4001
jb 0x4303bf
cmp byte [ebp + 0x14], bl
je 0x430385
push 0x4e1a4c
push 0x4ecfc4
jmp 0x430375
cmp dword [ebp - 0x18], ebx
jne 0x4304d9
push 0x40
lea ecx, [ebp - 0xbc]
push 0
push ecx
call fcn.004ce290
mov esi, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp - 0xc0], 0x44
mov dword [ebp - 0x94], 1
test esi, esi
je 0x430409
cmp word [esi], bx
je 0x430409
call fcn.0041cfb0
mov word [ebp - 0x90], ax
jmp 0x430415
mov edx, 1
mov word [ebp - 0x90], dx
xor eax, eax
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x430463
cmp word [ebx], ax
je 0x430463
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430434
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x24]
lea eax, [eax + eax + 0x14]
call fcn.004cc950
mov esi, esp
push ebx
push edi
push str._s__s
push esi
call fcn.004c52a7
add esp, 0x10
jmp 0x43048f
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax + 2]
call fcn.004cc950
mov esi, esp
mov edx, esi
mov eax, edi
sub edx, edi
jmp 0x430480
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x430480
cmp byte [ebp + 0x27], 0
je 0x430529
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x38]
push edx
push eax
mov eax, dword [ebp + 0x28]
lea ecx, [ebp - 0x11]
push ecx
mov ecx, dword [ebp - 0x90]
lea edx, [ebp - 0x34]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
mov cl, byte [ebp + 0x14]
push esi
push edx
mov edx, dword [ebp + 0x10]
call fcn.00451bd0
test eax, eax
je 0x430385
cmp byte [ebp - 0x11], 0
jne 0x430582
mov ebx, dword [ebp - 0x38]
cmp byte [ebp + 0x27], 0
jne 0x43083e
push 0x38
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004ce290
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x78], 0x3c
mov dword [ebp - 0x74], 0x440
mov dword [ebp - 0x60], ecx
test esi, esi
je 0x430623
cmp word [esi], 0
je 0x430623
call fcn.0041cfb0
mov dword [ebp - 0x5c], eax
jmp 0x43062a
cmp dword [ebp + 0x2c], 0
je 0x4305d4
mov ecx, dword [ebp + 0x10]
push esi
lea edi, [ebp - 0x34]
lea eax, [ebp - 0xc0]
call fcn.004812e0
mov ecx, dword [ebp + 0x34]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x4305c9
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp - 0x84]
mov dword [eax], edx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x43056a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
mov dword [edx], ecx
test eax, eax
je 0x430582
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004016b0
cmp byte [ebp + 0x20], 0
je 0x430595
mov edx, dword [0x51161c]
mov dword [edx + 0x30], 0
cmp dword [ebp + 0x1c], 0
jne 0x4305ab
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4305ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea esp, [ebp - 0x15d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4304e3
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xc0]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4305c9
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x430608
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x28], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
je 0x430582
mov edx, dword [ebp + 0x28]
push edx
jmp 0x43057a
mov dword [ebp - 0x5c], 1
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x430653
push str.___7__7_
mov dword [ebp - 0x6c], esi
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c4e9d
add esp, 8
test eax, eax
jne 0x430653
or dword [ebp - 0x74], 0xc
cmp dword [ebp - 0x10], 0
jne 0x430797
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax + 2]
call fcn.004cc950
mov eax, dword [ebp - 0x1c]
mov ebx, esp
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x430672
cmp word [ebx], 0x22
jne 0x4306c3
lea esi, [ebx + 2]
push 0x22
push esi
call fcn.004c5cc1
add esp, 8
test eax, eax
je 0x4306c3
xor edx, edx
mov word [eax], dx
add eax, 2
mov dword [ebp - 0x1c], esi
cmp word [eax], dx
je 0x430797
cmp word [eax], 0x20
mov dword [ebp - 0x10], eax
jne 0x430797
add dword [ebp - 0x10], 2
jmp 0x430797
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4306d1
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebx + 2]
push 0x20
push eax
call fcn.004c5cc1
mov edi, eax
add esp, 8
test edi, edi
je 0x430776
lea esp, [esp]
lea esi, [edi - 2]
cmp esi, ebx
jbe 0x430713
movzx ecx, word [esi]
push ecx
push 0x4ed004
call fcn.004c5cc1
add esp, 8
test eax, eax
jne 0x430713
sub esi, 2
cmp esi, ebx
ja 0x4306f7
cmp word [esi], 0x2e
jne 0x430757
mov eax, edi
sub eax, esi
xor edx, edx
and eax, 0xfffffffe
mov word [edi], dx
cmp eax, 8
jne 0x430744
push str.77031_1_6:3
call fcn.0049fc00
mov ecx, eax
add esp, 4
mov eax, esi
call fcn.004a75a0
test eax, eax
jne 0x43076d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x43076d
mov ecx, 0x20
mov word [edi], cx
push 0x20
add edi, 2
push edi
call fcn.004c5cc1
mov edi, eax
add esp, 8
test edi, edi
jne 0x4306f0
jmp 0x430776
add edi, 2
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0x10], 0
je 0x430797
mov eax, dword [0x511644]
test eax, eax
je 0x43078b
mov eax, dword [eax]
test eax, eax
jne 0x430790
mov eax, 0x4e1a4c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x78]
push ecx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x430836
test byte [0x51a334], 1
jne 0x430803
or dword [0x51a334], 1
push 0x4ed048
mov dword [ebp - 4], 0
call fcn.0049fce0
add esp, 4
push eax
push str.97__7_a_6__
call fcn.0049fc00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51a330], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x430808
mov eax, dword [0x51a330]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x20]
mov dword [edx], ecx
test ecx, ecx
je 0x430582
cmp dword [ebp + 0x28], 0
je 0x430582
test eax, eax
je 0x430582
push ecx
call eax
mov ecx, dword [ebp + 0x28]
push ecx
jmp 0x43057d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp byte [ebp + 0x20], 0
je 0x43084d
mov edx, dword [0x51161c]
mov dword [edx + 0x30], ebx
cmp byte [ebp + 0x14], 0
je 0x430385
push 0
push 0x1ff
lea eax, [ebp - 0x5c0]
push eax
push 0
push ebx
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [ebp - 0x18], 0
je 0x4308a2
mov ecx, dword [ebp - 0x18]
push ecx
push 0x4ed08c
call fcn.0049fc00
add esp, 4
push eax
mov esi, 0x80
lea edi, [ebp - 0x1c0]
call fcn.004a71f0
add esp, 8
jmp 0x4308ab
xor edx, edx
mov word [ebp - 0x1c0], dx
cmp dword [ebp - 0x10], 0
mov esi, 0x4e1a4c
jne 0x4308b9
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4308c0
sub eax, edx
sar eax, 1
mov edi, 0x4e7b20
cmp eax, 0x190
ja 0x4308dd
mov edi, esi
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4308e5
sub eax, edx
sar eax, 1
cmp eax, 0x190
jbe 0x430900
mov esi, 0x4e7b20
cmp byte [ebp + 0x27], 0
je 0x43090d
push 0x4ed0b8
jmp 0x430912
push 0x4ed120
call fcn.0049fc00
mov ecx, dword [ebp - 0x10]
add esp, 4
push edi
push ecx
lea edx, [ebp - 0x1c0]
push edx
push esi
push ebx
push eax
push 0x4ed190
call fcn.0049fc00
add esp, 4
push eax
mov esi, 0x800
lea edi, [ebp - 0x15c0]
call fcn.004a71f0
add esp, 0x1c
lea eax, [ebp - 0x5c0]
push eax
mov ecx, edi
push ecx
mov ecx, dword [ebp + 8]
call fcn.004768b0
xor eax, eax
jmp 0x4305b0