Function at 0x10041620
Capabilities:
Accept command line arguments
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100658e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push esi
push edi
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x104]
call fcn.1003a3c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.1003a3c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xec]
call fcn.1003a3c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
call fcn.1003a3c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
call fcn.1003a4b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.1003a4b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb4]
call fcn.1003a4b0
mov byte [ebp - 4], 6
push 0x100010c8
lea ecx, [ebp - 0x1c]
call fcn.1003c2b0
mov ecx, dword [ebp + 0x1c]
call fcn.1003d470
mov dword [ebp - 0x30], eax
push 0x17
push 0
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0xd4]
call fcn.10041c40
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
push 0x4a
push 0
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.10041c40
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
call fcn.1003d470
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.1005b195
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0xbc]
sub ecx, eax
add ecx, esi
mov dword [0x10001b38], ecx
lea ecx, [ebp - 0x11c]
call fcn.1003a6f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x134]
call fcn.1003a6f0
push 0x13
push 0
lea edx, [ebp - 0x14c]
push edx
mov ecx, dword [ebp + 0x20]
call fcn.10041c40
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
push 0
mov ecx, dword [ebp - 0x40]
call fcn.10040830
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14c]
call fcn.1003a6f0
mov ecx, 0x10069138
call fcn.1003d940
cmp eax, 0x76
jae 0x10041845
lea edx, [ebp - 0xd4]
push edx
push 0x10069180
push 0x100691c8
push 0x100690d8
lea eax, [ebp - 0x194]
push eax
call fcn.1003c340
add esp, 0xc
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x17c]
push eax
call fcn.1003d9a0
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x50]
push edx
lea eax, [ebp - 0x164]
push eax
call fcn.1003d9a0
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
push ecx
mov ecx, 0x10069138
call fcn.1003e650
lea ecx, [ebp - 0x164]
call fcn.1003a6f0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x17c]
call fcn.1003a6f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x194]
call fcn.1003a6f0
mov edx, dword [0x10001b38]
xor edx, dword [0x10001b10]
je 0x1004188e
push 0x1937
call fcn.100576d9
add esp, 4
mov esi, eax
push 0x1937
call fcn.100576d9
add esp, 4
add esi, eax
sub esi, dword [0x10001b14]
mov dword [ebp - 0x5c], esi
mov eax, dword [0x10001b18]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x5c]
mov dword [0x10001b18], ecx
push 0x100010bc
lea ecx, [ebp - 0x1c]
call fcn.1003e690
lea edx, [ebp - 0xb4]
push edx
lea ecx, [ebp - 0xb4]
call fcn.1003c2b0
push 0x100010c8
lea ecx, [ebp - 0xa8]
call fcn.1003e690
push 0x54
push 0
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10041c40
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
call fcn.10040720
mov esi, eax
push 0x1002e9a4
call fcn.1005af8b
add esp, 4
mov edi, eax
call fcn.10057709
sub edi, eax
xor esi, edi
mov dword [ebp - 0x68], esi
mov ecx, dword [0x10001b18]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x68]
mov dword [0x10001b18], edx
lea ecx, [ebp - 0x1ac]
call fcn.1003a6f0
push 0
push 0x1002e9c0
push 0x1002e9e4
call dword [sym.imp.SHLWAPI.dll_PathFindSuffixArrayA]
mov esi, eax
push 0x1002e9f0
lea ecx, [ebp - 0x1c4]
call fcn.1003a330
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
call fcn.1003d470
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
sub esi, eax
push 0x1002e9f8
call fcn.1005af8b
add esp, 4
sub esi, eax
mov dword [ebp - 0xb8], esi
lea ecx, [ebp - 0x1c4]
call fcn.1003a6f0
mov ecx, 0x100691b0
call fcn.1003d940
cmp eax, 0xc6
jae 0x100419c4
push 0x10069168
push 0x10069108
lea eax, [ebp - 0x1dc]
push eax
call fcn.1003c340
add esp, 0xc
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
push ecx
mov ecx, 0x100691b0
call fcn.1003e650
lea ecx, [ebp - 0x1dc]
call fcn.1003a6f0
lea ecx, [ebp - 0xd4]
call fcn.1003d940
cmp eax, 0x7c
jae 0x10041a0c
lea edx, [ebp - 0xec]
push edx
push 0x10069150
lea eax, [ebp - 0x1f4]
push eax
call fcn.1003c340
add esp, 0xc
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0xd4]
call fcn.1003e650
lea ecx, [ebp - 0x1f4]
call fcn.1003a6f0
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x1c]
call fcn.1003c2b0
mov ecx, 0x10069120
call fcn.1003d940
cmp eax, 0x13
jae 0x10041ace
push 0x10069090
push 0x100691c8
push 0x100690d8
push 0x100691c8
lea eax, [ebp - 0x23c]
push eax
call fcn.1003c340
add esp, 0xc
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x78]
push edx
lea eax, [ebp - 0x224]
push eax
call fcn.1003d9a0
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x80]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.1003d9a0
add esp, 0xc
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
push ecx
mov ecx, 0x10069120
call fcn.1003e650
lea ecx, [ebp - 0x20c]
call fcn.1003a6f0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x224]
call fcn.1003a6f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x23c]
call fcn.1003a6f0
lea edx, [ebp - 0xa8]
push edx
mov ecx, 0x100010bc
call fcn.1003c2b0
mov ecx, 0x10069180
call fcn.10040740
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1003c2b0
push 0x1002ea1c
lea ecx, [ebp - 0x254]
call fcn.1003a330
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.1003d470
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp + 0x24]
call fcn.1003d470
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov dword [ebp - 0x98], eax
mov eax, dword [0x10001b18]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
sub ecx, dword [ebp - 0x98]
mov dword [0x10001b18], ecx
lea ecx, [ebp - 0x254]
call fcn.1003a6f0
lea edx, [ebp - 0x104]
push edx
mov ecx, dword [ebp + 8]
call fcn.1003a220
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb4]
call fcn.1003a750
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.1003a750
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
call fcn.1003a750
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
call fcn.1003a6f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xec]
call fcn.1003a6f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.1003a6f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x104]
call fcn.1003a6f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret