Function at 0x1004b2e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e30f8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x101a12fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0xffff
push eax
lea eax, [ebp - 0x70]
push str.DLLLoader32__04X.exe
push eax
call fcn.1009f340
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebx], ax
jne 0x1004b364
xor ecx, ecx
jmp 0x1004b37f
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004b370
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.10047490
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x94], 0x5c
call fcn.10054ba0
cmp eax, 0xffffffff
je 0x1004b3d9
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
ja 0x1004b3cc
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x1004b3d9
sub eax, ecx
lea ecx, [ebp - 0x28]
push 0
push eax
call fcn.100218f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.100464c0
lea eax, [ebp - 0x40]
push 0x101b9ab0
push eax
call fcn.1009ef60
add esp, 8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push 0
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
mov byte [ebp - 4], 2
call edi
test eax, eax
jne 0x1004b4cb
lea eax, [ebp - 0x88]
push 0x101b98a0
push eax
call fcn.1009ef60
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x1004b473
cmp dword [ebp - 0x14], 8
jb 0x1004b456
push dword [ebp - 0x28]
call fcn.100dd8b4
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10020eb0
cmp dword [ebp - 0x74], 8
jb 0x1004b487
push dword [ebp - 0x88]
call fcn.100dd8b4
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.100464c0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call edi
test eax, eax
jne 0x1004b4cb
push str.Error_debugging_DLL__failed_to_copy_loader__n
call fcn.10044d60
add esp, 4
xor edi, edi
jmp 0x1004b57d
push dword [ebp - 0x8c]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x90]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100d0844
mov edi, eax
lea eax, [ebp - 0x58]
push dword [edi + 8]
push str.Local_szLibraryName_X
push eax
call fcn.1009f340
add esp, 0x18
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x101b9d44], eax
test eax, eax
je 0x1004b558
push 0x400
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x1004b558
push ebx
push 0x200
push esi
call dword [0x100ef404]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x44], 8
jb 0x1004b569
push dword [ebp - 0x58]
call fcn.100dd8b4
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp dword [ebp - 0x2c], 8
jb 0x1004b58e
push dword [ebp - 0x40]
call fcn.100dd8b4
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x1004b5b3
push dword [ebp - 0x28]
call fcn.100dd8b4
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x1004b5d8
push dword [ebp - 0x70]
call fcn.100dd8b4
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dd9b4
mov esp, ebp
pop ebp
ret