Function at 0x45e910
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x513200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
push edi
push 0x208
push 0
lea ebx, [eax + 4]
mov dword [ebp - 0x620], eax
push ebx
call fcn.0048bb90
add esp, 0xc
push 0x206
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push ebx
call fcn.0049706f
add esp, 8
cmp byte [eax], 0
je 0x45e963
mov byte [eax + 1], 0
mov ecx, ebx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + 0x207], al
test al, al
jne 0x45e965
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.0048bb90
lea edx, [ebp - 0x61c]
add esp, 0xc
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x45e994
lea ecx, [ebp - 0x61c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x45e9a8
mov eax, dword [str.crash_]
mov dword [ecx], eax
mov ax, word [0x4e79e8]
mov word [ecx + 4], ax
mov al, byte [0x4e79ea]
mov byte [ecx + 6], al
lea eax, [ebp - 0x61c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0048bb90
lea edx, [ebp - 0x414]
add esp, 0xc
mov ecx, ebx
sub edx, ebx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x45ea00
mov edx, dword [0x528190]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x45ea15
lea edi, [ebp - 0x414]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45ea25
mov ecx, edx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x208
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0048bb90
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0x61c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x20d], al
test al, al
jne 0x45ea53
lea ecx, [ebp - 0x20c]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x45ea70
mov eax, dword [str.crash.dmp]
mov dword [ecx], eax
mov eax, dword [0x4e79f0]
mov dword [ecx + 4], eax
mov ax, word [0x4e79f4]
mov word [ecx + 8], ax
lea eax, [ebp - 0x20c]
push 0
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048bb90
lea ecx, [ebp - 0x20c]
add esp, 0xc
sub ecx, ebx
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [ecx + ebx - 1], al
test al, al
jne 0x45eac7
mov edx, dword [0x528194]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x45eae0
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45eaf0
mov ecx, edx
lea eax, [ebp - 0x414]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x208
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0048bb90
add esp, 0xc
xor ecx, ecx
nop
mov al, byte [ebp + ecx - 0x61c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x415], al
test al, al
jne 0x45eb20
lea ecx, [ebp - 0x414]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x45eb40
mov eax, dword [str.errorlog.txt]
mov dword [ecx], eax
mov eax, dword [0x4e79fc]
mov dword [ecx + 4], eax
mov eax, dword [0x4e7a00]
mov dword [ecx + 8], eax
mov al, byte [0x4e7a04]
mov byte [ecx + 0xc], al
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0045ebb0
mov esi, dword [ebp - 0x620]
lea eax, [ebp - 0x61c]
add esp, 8
mov ecx, esi
push eax
call fcn.0045f560
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x61c], eax
xor ecx, ebp
pop esi
pop ebx
call fcn.00489940
mov esp, ebp
pop ebp
ret