Function at 0x1003d520
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x100c3790
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1010001c]
xor eax, ebp
mov dword [ebp + 0x78], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x9c], 0
mov esi, dword [ebp + 0x84]
je 0x1003d568
xor al, al
jmp 0x1003d960
mov dword [edi + 0xb8], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x1003d5a1
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
lea ebx, [edi + 0x10]
call fcn.10003f00
add esp, 4
cmp ebx, eax
je 0x1003d5cd
mov ecx, esi
call fcn.10003a20
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x1003d5c2
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.10003a30
lea ecx, [esi + 0x18]
push ecx
mov dword [ebp - 0x14], ecx
call fcn.10003f00
lea ecx, [ebx + 0x18]
add esp, 4
cmp ecx, eax
je 0x1003d601
lea ecx, [esi + 0x18]
call fcn.10003a20
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x1003d5f5
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebx + 0x18]
push edx
call fcn.10003a30
lea eax, [esi + 0x30]
push eax
call fcn.10003f00
lea ecx, [ebx + 0x30]
add esp, 4
cmp ecx, eax
je 0x1003d632
lea ecx, [esi + 0x30]
call fcn.10003a20
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x1003d626
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebx + 0x30]
push edx
call fcn.10003a30
lea eax, [esi + 0x48]
push eax
call fcn.10003f00
lea ecx, [ebx + 0x48]
add esp, 4
cmp ecx, eax
je 0x1003d663
lea ecx, [esi + 0x48]
call fcn.10003a20
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x1003d657
mov edx, dword [eax]
push dword [eax + 0x10]
lea ecx, [ebx + 0x48]
push edx
call fcn.10003a30
mov al, byte [esi + 0x60]
mov byte [ebx + 0x60], al
mov al, byte [esi + 0x61]
mov byte [ebx + 0x61], al
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x64], eax
mov eax, dword [esi + 0x68]
mov dword [ebx + 0x68], eax
mov eax, dword [esi + 0x6c]
mov dword [ebx + 0x6c], eax
lea eax, [esi + 0x70]
push eax
add ebx, 0x70
call fcn.10003f00
add esp, 4
cmp ebx, eax
je 0x1003d6b1
lea ecx, [esi + 0x70]
call fcn.10003a20
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x1003d6a6
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, ebx
push edx
call fcn.10003a30
cmp dword [esi + 0x64], 0
je 0x1003d71f
push 0x100e1bcc
lea ecx, [ebp - 0x2c]
call fcn.100039b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push dword [esi + 0x64]
mov ecx, edi
push eax
call fcn.1003e610
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003910
cmp esi, 1
sete bl
jne 0x1003d701
mov dword [edi + 0xb0], 0
jmp 0x1003d95e
cmp dword [edi + 0xb0], 0
jne 0x1003d95e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x1003d95e
lea ecx, [ebp]
call fcn.10003a00
mov dword [ebp - 4], 1
lea edx, [ebp]
mov ecx, dword [ebp - 0x14]
call fcn.1000e390
test al, al
je 0x1003d759
lea eax, [ebp]
push eax
call fcn.10006c70
add esp, 4
test al, al
jne 0x1003d759
lea eax, [ebp]
push eax
call fcn.100071d0
add esp, 4
lea eax, [ebp]
push eax
call fcn.10006c70
add esp, 4
test al, al
jne 0x1003d77c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
xor bl, bl
jmp 0x1003d94f
push str..tmp
lea esi, [edi + 0x28]
lea eax, [ebp + 0x60]
push esi
push eax
call fcn.10003d00
add esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp + 0x60]
push eax
mov ecx, edi
call fcn.1003dc40
mov bl, al
test bl, bl
je 0x1003d910
push esi
mov dword [edi + 0xb0], 0
call fcn.10006ad0
add esp, 4
test al, al
je 0x1003d7d2
push esi
lea eax, [ebp + 0x60]
push eax
call fcn.1003d980
mov bl, al
jmp 0x1003d900
push 0xb
mov ecx, esi
call fcn.100038a0
push eax
lea ecx, [ebp + 0x60]
call fcn.100038a0
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call ebx
test eax, eax
je 0x1003d7f8
mov bl, 1
jmp 0x1003d900
lea ecx, [ebp + 0x18]
mov byte [ebp - 0xd], 0
call fcn.10003a00
mov byte [ebp - 4], 3
lea edx, [ebp + 0x18]
lea ecx, [ebp + 0x60]
call fcn.100122d0
movzx ecx, byte [ebp - 0xd]
test al, al
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp + 0x30]
call fcn.10003a00
mov byte [ebp - 4], 4
lea edx, [ebp + 0x30]
mov ecx, esi
call fcn.100122d0
test al, al
jne 0x1003d843
cmp byte [ebp - 0x14], al
je 0x1003d87c
push 0xb
lea ecx, [ebp + 0x30]
call fcn.100038a0
push eax
lea ecx, [ebp + 0x18]
call fcn.100038a0
push eax
call ebx
test eax, eax
je 0x1003d87c
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x30]
call fcn.10003910
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.10003910
mov bl, 1
jmp 0x1003d900
mov ecx, esi
call fcn.10011b60
cmp eax, 0xffffffff
je 0x1003d8e6
push esi
lea ecx, [ebp + 0x48]
call fcn.10006780
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x48]
call fcn.10012020
test al, al
je 0x1003d8da
lea edx, [ebp + 0x48]
mov ecx, esi
call fcn.10011c00
test al, al
je 0x1003d8da
mov edx, esi
lea ecx, [ebp + 0x60]
call fcn.10011c00
lea ecx, [ebp + 0x48]
test al, al
je 0x1003d8d3
call fcn.10011e10
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x48]
call fcn.10003910
jmp 0x1003d85d
mov edx, esi
call fcn.10011c00
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x48]
call fcn.10003910
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x30]
call fcn.10003910
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.10003910
xor bl, bl
test bl, bl
je 0x1003d92e
mov dword [edi + 0xb0], 0
jmp 0x1003d943
cmp byte [edi + 0x70], 0
jne 0x1003d92e
lea eax, [ebp + 0x60]
push eax
call fcn.10006ad0
add esp, 4
test al, al
je 0x1003d92e
lea ecx, [ebp + 0x60]
call fcn.10011e10
cmp dword [edi + 0xb0], 0
jne 0x1003d943
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x60]
call fcn.10003910
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.10003910
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x78]
xor ecx, ebp
call fcn.1008a187
lea esp, [ebp + 0x7c]
pop ebp
ret 4