Function at 0x423410
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x502204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
push 0x208
push 0
lea esi, [ebx + 4]
mov dword [ebp - 0x620], ebx
push esi
call fcn.0044eee0
push 0x208
add ebx, 0x20c
push 0
push ebx
call fcn.0044eee0
add esp, 0x18
push 0x206
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push esi
call fcn.00459788
add esp, 8
cmp byte [eax], 0
je 0x423476
mov byte [eax + 1], 0
mov ecx, ebx
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x423478
lea ecx, [ebx - 1]
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x423490
mov eax, dword [str.Data_]
mov dword [ecx], eax
mov ax, word [0x4d3a38]
push 0x208
mov word [ecx + 4], ax
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.0044eee0
lea edx, [ebp - 0x61c]
add esp, 0xc
mov ecx, ebx
sub edx, ebx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4234d0
lea ecx, [ebp - 0x61c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4234e4
mov eax, dword [str.crash_]
mov dword [ecx], eax
mov ax, word [0x4d3a40]
mov word [ecx + 4], ax
mov al, byte [0x4d3a42]
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.0044eee0
lea edx, [ebp - 0x414]
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 0x423536
mov edx, dword [0x519644]
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x423550
lea edi, [ebp - 0x414]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x423560
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.0044eee0
add esp, 0xc
xor ecx, ecx
nop
mov al, byte [ebp + ecx - 0x61c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x20d], al
test al, al
jne 0x423590
lea ecx, [ebp - 0x20c]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4235b0
mov eax, dword [str.crash.dmp]
mov dword [ecx], eax
mov eax, dword [0x4d3a48]
mov dword [ecx + 4], eax
mov ax, word [0x4d3a4c]
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.0044eee0
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 0x423607
mov edx, dword [0x519648]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x423620
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x423630
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.0044eee0
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 0x423660
lea ecx, [ebp - 0x414]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x423680
mov eax, dword [str.errorlog.txt]
mov dword [ecx], eax
mov eax, dword [0x4d3a54]
mov dword [ecx + 4], eax
mov eax, dword [0x4d3a58]
mov dword [ecx + 8], eax
mov al, byte [0x4d3a5c]
mov byte [ecx + 0xc], al
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004236f0
mov esi, dword [ebp - 0x620]
lea eax, [ebp - 0x61c]
add esp, 8
mov ecx, esi
push eax
call fcn.00423f70
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x61c], eax
xor ecx, ebp
pop esi
pop ebx
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret