Function at 0x44d330
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15f4
call fcn.004b5610
push ebx
mov ebx, ecx
lea eax, [ebp - 0x60]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
push esi
mov esi, dword [ebp + 8]
cmovne eax, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
push edi
mov dword [eax], 0
test esi, esi
je 0x44daf6
cmp word [esi], 0
je 0x44daf6
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x44d3cb
cmp word [edi], 0
je 0x44d3c4
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44d38b
test al, 0x10
jne 0x44d3cb
cmp byte [ebp + 0x14], 0
je 0x44d3b3
push 0
push 0
push 9
push edi
push 0x4d6888
mov ecx, ebx
call fcn.0040c800
lea esp, [ebp - 0x1600]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
xor eax, eax
lea esp, [ebp - 0x1600]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov dword [ebp + 0x10], 0
xor ebx, ebx
xor edx, edx
mov dword [ebp - 8], ebx
mov edi, esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp + 8], edi
test ebx, ebx
je 0x44d460
push 0x4d8228
push esi
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x44d454
push 0x4d8234
push esi
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x44d454
push 0x4d8244
push esi
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x44d454
push 0x4cea34
push esi
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x44d454
push 0x4d8250
push esi
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x44d454
push 0x4d825c
push esi
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x44d454
mov dword [ebp - 8], ebx
xor edx, edx
jmp 0x44d4a9
mov edx, esi
mov edi, ebx
mov dword [ebp - 4], edx
mov dword [ebp + 8], edi
jmp 0x44d4a9
movzx eax, word [esi]
mov ebx, esi
test ax, ax
je 0x44d4a9
mov edi, eax
nop dword [eax]
mov ecx, 0x4d3690
mov edx, 0x20
nop word [eax + eax]
cmp di, dx
je 0x44d527
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x44d480
movzx eax, word [ebx + 2]
add ebx, 2
mov edi, eax
test ax, ax
jne 0x44d470
xor edx, edx
mov edi, esi
mov ebx, dword [ebp - 0xc]
xor ecx, ecx
cmp byte [ebp + 0x24], cl
je 0x44d5e2
mov eax, dword [ebx + 0x6f4]
test eax, eax
je 0x44d4c6
cmp dword [eax + 8], ecx
jne 0x44d4ec
mov eax, dword [ebx + 0x700]
test eax, eax
je 0x44d4d5
cmp dword [eax + 8], ecx
jne 0x44d4ec
mov eax, dword [ebx + 0x70c]
test eax, eax
je 0x44d5e2
cmp dword [eax + 8], ecx
je 0x44d5e2
mov byte [ebp + 0x27], 1
test edx, edx
je 0x44d5e5
cmp byte [ebp + 0x14], cl
je 0x44d3b3
push 0
push 0
push 9
push 0x4cdea8
push 0x4d8278
mov ecx, ebx
call fcn.0040c800
lea esp, [ebp - 0x1600]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
sub ebx, esi
sar ebx, 1
add ebx, ebx
lea eax, [ebx + 2]
call fcn.004b53e0
mov eax, esp
push ebx
push esi
push eax
call fcn.0049c940
mov edi, eax
add esp, 0xc
xor eax, eax
mov word [ebx + edi], ax
cmp word [edi], 0x2a
jne 0x44d558
lea edx, [edi + 2]
mov dword [ebp - 4], edx
jmp 0x44d5cd
push 0x4d8228
push edi
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x44d5c8
push 0x4d8234
push edi
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x44d5c8
push 0x4d8244
push edi
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x44d5c8
push 0x4cea34
push edi
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x44d5c8
push 0x4d8250
push edi
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x44d5c8
push 0x4d825c
push edi
call fcn.0049ed01
add esp, 8
test eax, eax
jne 0x44d4a5
mov edx, edi
mov dword [ebp - 4], edi
test edx, edx
je 0x44d4a7
lea edi, [esi + 2]
add edi, ebx
mov dword [ebp + 8], edi
jmp 0x44d4a9
mov byte [ebp + 0x27], cl
lea edx, [edi + 2]
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x44d5f0
sub edi, edx
sar edi, 1
cmp edi, 0x4001
jb 0x44d636
cmp byte [ebp + 0x14], cl
je 0x44d3b3
push 0
push 0
push 9
push 0x4cdea8
push 0x4d82c4
mov ecx, ebx
call fcn.0040c800
lea esp, [ebp - 0x1600]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ebx, dword [ebp + 0x18]
cmp dword [ebp - 4], ecx
jne 0x44d86e
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0x44
xor eax, eax
movlpd qword [ebp - 0xa4], xmm0
movlpd qword [ebp - 0x9c], xmm0
movlpd qword [ebp - 0x94], xmm0
movlpd qword [ebp - 0x8c], xmm0
movlpd qword [ebp - 0x84], xmm0
movlpd qword [ebp - 0x76], xmm0
movlpd qword [ebp - 0x6e], xmm0
mov word [ebp - 0x66], ax
mov dword [ebp - 0x7c], 1
test ebx, ebx
je 0x44d6db
cmp word [ebx], ax
je 0x44d6db
push 0x4d4a68
push ebx
call fcn.0049ed01
add esp, 8
test eax, eax
jne 0x44d6b0
mov eax, 6
jmp 0x44d6e0
push 0x4d3ed4
push ebx
call fcn.0049ed01
add esp, 8
test eax, eax
jne 0x44d6c9
mov eax, 3
jmp 0x44d6e0
push 0x4d4a70
push ebx
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x44d6e0
mov eax, 1
mov word [ebp - 0x78], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
movups xmmword [ebp - 0x20], xmm0
test eax, eax
je 0x44d73a
cmp word [eax], 0
je 0x44d73a
mov ecx, eax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44d700
sub ecx, edx
sar ecx, 1
lea eax, [ecx + edi]
lea eax, [eax*2 + 0x14]
call fcn.004b53e0
mov eax, esp
push dword [ebp + 0xc]
mov dword [ebp + 0x18], eax
push esi
push 0x4d82e8
push eax
call fcn.00406520
mov edx, dword [ebp + 0x18]
add esp, 0x10
jmp 0x44d760
lea eax, [edi*2 + 2]
call fcn.004b53e0
mov edx, esp
mov ecx, edx
mov dword [ebp + 0x18], edx
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x44d750
cmp byte [ebp + 0x27], 0
je 0x44d8d5
xor eax, eax
mov dword [ebp - 0xf0], 0x44
xorps xmm0, xmm0
mov word [ebp - 0xae], ax
mov ax, word [ebp - 0x78]
mov word [ebp - 0xc0], ax
mov eax, dword [ebp + 0x10]
movlpd qword [ebp - 0xec], xmm0
movlpd qword [ebp - 0xe4], xmm0
movlpd qword [ebp - 0xdc], xmm0
movlpd qword [ebp - 0xd4], xmm0
movlpd qword [ebp - 0xcc], xmm0
movlpd qword [ebp - 0xbe], xmm0
movlpd qword [ebp - 0xb6], xmm0
mov dword [ebp - 0xc4], 1
test eax, eax
je 0x44d7dd
cmp word [eax], 0
mov dword [ebp + 0xc], eax
jne 0x44d7e4
mov dword [ebp + 0xc], 0
mov edx, dword [ebp - 0xc]
mov ecx, 0x4cdea8
mov eax, dword [edx + 0x700]
test eax, eax
je 0x44d801
mov eax, dword [eax]
mov esi, ecx
test eax, eax
cmovne esi, eax
jmp 0x44d806
mov esi, 0x4cdea8
mov eax, dword [edx + 0x70c]
test eax, eax
je 0x44d81b
mov eax, dword [eax]
mov edx, ecx
test eax, eax
cmovne edx, eax
jmp 0x44d820
mov edx, 0x4cdea8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x6f4]
test eax, eax
je 0x44d836
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
jmp 0x44d83b
mov ecx, 0x4cdea8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xf0]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
push 0
push 0
push eax
push 0
push 1
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x44d8fb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
cmp byte [ebp + 0x27], 0
jne 0x44db25
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x58], 0x440
mov dword [ebp - 0x44], esi
test ebx, ebx
je 0x44d94d
cmp word [ebx], 0
je 0x44d94d
push 0x4d4a68
push ebx
call fcn.0049ed01
add esp, 8
test eax, eax
jne 0x44d91e
mov eax, 6
jmp 0x44d952
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xa8]
push eax
push esi
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x44d913
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x44d90b
push eax
call esi
mov eax, dword [ebp - 0x20]
jmp 0x44dad0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x44d87b
push 0x4d3ed4
push ebx
call fcn.0049ed01
add esp, 8
test eax, eax
jne 0x44d937
mov eax, 3
jmp 0x44d952
push 0x4d4a70
push ebx
call fcn.0049ed01
add esp, 8
neg eax
sbb eax, eax
neg eax
jmp 0x44d952
mov eax, 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x44d975
push 0x4d825c
push eax
mov dword [ebp - 0x50], eax
call fcn.0049ed01
add esp, 8
test eax, eax
jne 0x44d975
or dword [ebp - 0x58], 0xc
mov ebx, dword [ebp - 8]
test ebx, ebx
jne 0x44dab0
lea eax, [edi*2 + 2]
call fcn.004b53e0
mov ecx, dword [ebp + 8]
mov edi, esp
mov edx, edi
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x44d995
cmp word [edi], 0x22
jne 0x44d9e6
lea esi, [edi + 2]
push 0x22
push esi
call fcn.0049c891
add esp, 8
test eax, eax
je 0x44d9e6
xor ecx, ecx
mov dword [ebp + 8], esi
mov word [eax], cx
movzx ecx, word [eax + 2]
test cx, cx
je 0x44dab0
lea ebx, [eax + 2]
cmp ecx, 0x20
jne 0x44dab0
add ebx, 2
jmp 0x44dab0
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test eax, eax
je 0x44d9f6
push eax
call esi
lea eax, [edi + 2]
push 0x20
push eax
call fcn.0049c891
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x44da8f
nop
lea esi, [ebx - 2]
cmp esi, edi
jbe 0x44da33
movzx eax, word [esi]
push eax
push 0x4d82f8
call fcn.0049c891
add esp, 8
test eax, eax
jne 0x44da33
sub esi, 2
cmp esi, edi
ja 0x44da17
cmp word [esi], 0x2e
jne 0x44da75
xor eax, eax
mov word [ebx], ax
mov eax, ebx
sub eax, esi
and eax, 0xfffffffe
cmp eax, 8
jne 0x44da5e
mov edx, esi
mov ecx, 0x4d8300
call fcn.00481a00
test eax, eax
jne 0x44db0a
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
je 0x44db0a
mov eax, 0x20
mov word [ebx], ax
lea eax, [ebx + 2]
push 0x20
push eax
call fcn.0049c891
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x44da10
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x10], 0
je 0x44dab0
mov eax, dword [0x4e4e9c]
mov ecx, 0x4cdea8
test eax, eax
je 0x44daad
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x48], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x44db1b
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp + 0x20], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
je 0x44dae7
mov eax, dword [0x4e37f8]
mov dword [eax + 0x38], 0
cmp dword [ebp + 0x1c], 0
jne 0x44daf6
mov eax, dword [ecx]
test eax, eax
je 0x44daf6
push eax
call esi
mov eax, 1
lea esp, [ebp - 0x1600]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
add ebx, 2
mov dword [ebp + 8], edi
jmp 0x44da92
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
jmp 0x44db28
mov ebx, dword [ebp - 8]
cmp byte [ebp + 0x20], 0
je 0x44db36
mov eax, dword [0x4e37f8]
mov dword [eax + 0x38], ecx
cmp byte [ebp + 0x14], 0
je 0x44d3b3
push 0
push 0x1ff
lea eax, [ebp - 0x5f0]
push eax
push 0
push ecx
push 0
push 0x1200
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x44db81
push eax
push 0x4d832c
lea eax, [ebp - 0x1f0]
push 0x80
push eax
call fcn.004816a0
add esp, 0x10
jmp 0x44db8a
xor eax, eax
mov word [ebp - 0x1f0], ax
test ebx, ebx
mov edi, 0x4cdea8
cmovne edi, ebx
mov edx, edi
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x44dba0
mov ebx, dword [ebp + 8]
sub edx, ecx
mov esi, ebx
sar edx, 1
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44dbb7
sub esi, ecx
mov ecx, 0x4d4a2c
sar esi, 1
mov eax, ecx
cmp edx, 0x190
mov edx, 0x4cdea8
cmovbe eax, edx
cmp esi, 0x190
push eax
push edi
lea eax, [ebp - 0x1f0]
cmovbe ecx, edx
cmp byte [ebp + 0x27], 0
push eax
push ecx
push ebx
mov ecx, 0x4d83a0
mov eax, 0x4d8348
cmove eax, ecx
push eax
push 0x4d8400
lea eax, [ebp - 0x15f0]
push 0x800
push eax
call fcn.004816a0
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x5f0]
add esp, 0x24
push 0
push 0
push 9
push eax
lea eax, [ebp - 0x15f0]
push eax
call fcn.0040c800
lea esp, [ebp - 0x1600]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20