Function at 0x481870
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63fb96
mov eax, dword fs:[0]
push eax
sub esp, 0x148
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [0x74f068]
cmp ecx, edi
je 0x481a99
mov eax, dword [ebp + 8]
push eax
call fcn.004ba020
mov esi, eax
cmp esi, edi
je 0x481a99
cmp byte [esi + 0x1c], 0
je 0x481948
cmp dword [esi + 0x10], edi
je 0x4818d9
mov eax, dword [esi + 0x10]
jmp 0x4818dc
lea eax, [esi + 0x14]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4818e0
sub eax, edx
sar eax, 1
je 0x481948
cmp dword [esi + 0x10], edi
je 0x4818fb
mov eax, dword [esi + 0x10]
jmp 0x4818fe
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x481948
push 0x3c
push edi
lea ecx, [ebp - 0x58]
push ecx
call fcn.00613900
add esp, 0xc
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x40
cmp dword [esi + 0x10], edi
je 0x481931
mov eax, dword [esi + 0x10]
jmp 0x481934
lea eax, [esi + 0x14]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], 1
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp byte [esi + 0x1d], 0
je 0x4819a9
push edi
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x66b96c
call fcn.004030c0
mov byte [ebp - 4], 1
push 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x154]
call fcn.00525fc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x154]
call fcn.005e96b1
cmp eax, 1
jne 0x48199a
mov ecx, ebx
call fcn.0047fc00
mov ecx, dword [ebx + 0x198]
call fcn.004384d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x154]
call fcn.0045df40
cmp byte [esi + 0x1f], 0
je 0x481a3d
mov ecx, ebx
call fcn.0047fc00
push edi
mov ecx, ebx
call fcn.005e852c
mov eax, dword [0x74f084]
cmp eax, edi
je 0x4819e6
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4819e6
push edi
push edi
push 0x10
mov eax, dword [0x74f084]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x66b96c
call fcn.004030c0
mov byte [ebp - 4], 3
push 3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x154]
call fcn.00525fc0
mov byte [ebp - 4], 4
movzx ecx, byte [esi + 0x20]
mov dword [ebp - 0xe0], ecx
mov edx, dword [esi + 0x50]
mov dword [ebp - 0xdc], edx
lea ecx, [ebp - 0x154]
call fcn.005e96b1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x154]
call fcn.0045df40
cmp byte [esi + 0x1e], 0
je 0x481a99
xor bl, bl
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x234]
cmp edi, dword [ecx + 8]
jge 0x481a8e
push edi
call fcn.004aaf60
mov esi, dword [eax]
cmp dword [esi + 0x93c], 1
jne 0x481a7e
cmp dword [esi + 8], 0
je 0x481a79
mov ecx, esi
call fcn.005b4fe0
jmp 0x481a7e
mov bl, 1
mov byte [ebp - 0x11], bl
cmp dword [esi + 8], 0
je 0x481a8b
mov dword [esi + 8], 0
inc edi
jmp 0x481a48
test bl, bl
jne 0x481a99
mov ecx, eax
call fcn.004814f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4