Function at 0x407e80
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48a73c
push eax
mov eax, 0x1364
mov dword fs:[0], esp
call fcn.004584e0
mov eax, dword [esp + 0x1374]
push ebx
push esi
push edi
push 0x4afc2c
push eax
call fcn.0045879b
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x407ed9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1364]
mov dword fs:[0], ecx
add esp, 0x1370
ret
mov ecx, dword [esp + 0x1384]
push 0x4afbec
push ecx
call fcn.0045879b
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x407f19
push edi
call fcn.0045869f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1364]
mov dword fs:[0], ecx
add esp, 0x1370
ret
push 2
push 0
push edi
call fcn.00458f82
push edi
call fcn.00458dff
push 0
push 0
push edi
mov esi, eax
call fcn.00458f82
lea edx, [esi + 0xa]
push edx
call fcn.00458bae
mov ebx, eax
add esp, 0x20
test ebx, ebx
mov dword [esp + 0x18], ebx
jne 0x407f63
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1364]
mov dword fs:[0], ecx
add esp, 0x1370
ret
push ebp
push edi
push esi
push 1
push ebx
call fcn.00458ce8
mov byte [ebx + esi], 0
mov dl, byte [0x4bfab8]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x185]
mov byte [esp + 0x184], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x785]
mov byte [esp + 0x784], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x585]
mov byte [esp + 0x584], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.beginout
push ebx
stosb byte es:[edi], al
xor ebp, ebp
call fcn.0040c2a0
push str.endout
push ebx
mov esi, eax
call fcn.0040c2a0
add esp, 0x20
mov edi, eax
test esi, esi
mov dword [esp + 0x18], edi
je 0x408005
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov byte [esi], 0
call fcn.0045871c
add esp, 8
lea ebx, [esi + 1]
test edi, edi
je 0x408011
mov byte [edi], 0
inc edi
mov dword [esp + 0x18], edi
cmp byte [ebx], 0
je 0x4084a4
test ebp, ebp
jne 0x408061
push 0x4b0e68
push ebx
call fcn.004595c0
mov esi, eax
add esp, 8
test esi, esi
jbe 0x408496
mov edx, dword [esp + 0x10]
mov byte [esi], 0
push edx
push ebx
call fcn.0045871c
mov edi, 0x4b0e68
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, 2
add ecx, esi
mov ebx, ecx
jmp 0x408073
cmp ebp, 1
je 0x408486
cmp ebp, 2
jne 0x408486
push 0x4b0e60
push ebx
call fcn.004595c0
mov edx, eax
add esp, 8
test edx, edx
je 0x408486
sub eax, ebx
cmp eax, 0x3e8
jge 0x408486
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov byte [edx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x174]
mov esi, edi
mov ebx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4b0e60
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x174]
add edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, edx
lea edx, [esp + 0xb74]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0xb74]
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0xb74]
test cl, cl
je 0x408144
cmp cl, 0x5c
je 0x40812a
cmp cl, 0x2f
je 0x40812a
mov byte [esp + eax + 0x174], cl
jmp 0x40813b
mov byte [esp + eax + 0x174], 0x5c
inc eax
mov byte [esp + eax + 0x174], 0x5c
mov cl, byte [edx + 1]
inc edx
inc eax
test cl, cl
jne 0x408117
lea ecx, [esp + 0x28]
mov byte [esp + eax + 0x174], 0
call fcn.0046d670
lea ecx, [esp + 0x28]
push 0
push ecx
lea edx, [esp + 0x17c]
push 0x4b0e5c
push edx
mov dword [esp + 0x138c], 0
call fcn.00408b20
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp eax, 2
jne 0x408468
mov eax, dword [esp + 0x2c]
mov esi, str.embimg
mov eax, dword [eax]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4081b8
test cl, cl
je 0x4081b4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4081b8
add eax, 2
add esi, 2
test cl, cl
jne 0x408194
xor eax, eax
jmp 0x4081bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408468
lea ecx, [esp + 0x3c]
call fcn.0040f3a0
push str.embimg
lea ecx, [esp + 0x48]
mov byte [esp + 0x1380], 1
call fcn.0046e8dc
cmp dword [esp + 0x138c], 1
jne 0x40842c
mov eax, dword [esp + 0x44]
mov ecx, 0x4bfe38
push eax
call fcn.0041b550
test eax, eax
je 0x40842c
push 0x4b0e48
lea ecx, [esp + 0x50]
call fcn.0046e8dc
push 0x4b0e44
lea ecx, [esp + 0x50]
call fcn.0046eb2f
mov ecx, dword [esp + 0x2c]
add ecx, 4
push ecx
lea ecx, [esp + 0x50]
call fcn.0046eb6b
push 0x4b0e44
lea ecx, [esp + 0x50]
call fcn.0046eb2f
push 1
lea ecx, [esp + 0x40]
call fcn.0040f5e0
mov edx, dword [0x4bb604]
mov dword [esp + 0x14], edx
mov byte [esp + 0x137c], 2
lea esi, [esp + 0x174]
lea eax, [esp + 0x774]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x408293
test cl, cl
je 0x40828f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408293
add eax, 2
add esi, 2
test cl, cl
jne 0x40826f
xor eax, eax
jmp 0x408298
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4082b2
lea eax, [esp + 0x574]
lea ecx, [esp + 0x14]
push eax
call fcn.0046e8dc
jmp 0x40839e
lea ecx, [esp + 0xf74]
push 0xff
push ecx
push 0
push 0x4b0e3c
push 0
lea ecx, [esp + 0x50]
call fcn.00410fc0
lea edx, [esp + 0x104]
mov ecx, 0x1c
xor eax, eax
lea edi, [esp + 0x104]
push edx
push eax
rep stosd dword es:[edi], eax
push 0x4b0e3c
push eax
lea ecx, [esp + 0x4c]
call fcn.0040fbc0
mov ax, word [0x4b0e38]
mov ecx, 0x1f
mov word [esp + 0x84], ax
xor eax, eax
lea edi, [esp + 0x86]
lea edx, [esp + 0x84]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x88]
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, 0x4bfe38
call fcn.0041bc10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1380], 3
call fcn.0046e88c
lea ecx, [esp + 0x24]
mov byte [esp + 0x137c], 2
call fcn.0046e753
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0xf78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edi, [esp + 0x174]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x774]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x574]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
push esi
push 0x4b0e34
call fcn.0045871c
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call fcn.0045871c
push esi
push 0x4b0e34
call fcn.0045871c
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x137c], 1
call fcn.0046e753
jmp 0x408457
mov esi, dword [esp + 0x10]
push esi
push 0x4b0e34
call fcn.0045871c
lea edx, [esp + 0x17c]
push esi
push edx
call fcn.0045871c
push esi
push 0x4b0e34
call fcn.0045871c
add esp, 0x18
lea ecx, [esp + 0x3c]
mov byte [esp + 0x137c], 0
call fcn.0040f440
lea ecx, [esp + 0x28]
xor ebp, ebp
mov byte [esp + 0x174], 0
mov dword [esp + 0x137c], 0xffffffff
call fcn.0046d6a3
mov al, byte [ebx]
mov edi, dword [esp + 0x18]
test al, al
jne 0x40801a
jmp 0x4084a4
mov eax, dword [esp + 0x10]
push eax
push ebx
call fcn.0045871c
add esp, 8
test edi, edi
pop ebp
je 0x4084b7
mov ecx, dword [esp + 0xc]
push ecx
push edi
call fcn.0045871c
add esp, 8
mov edx, dword [esp + 0x18]
push edx
call fcn.004589c1
mov eax, dword [esp + 0x20]
push eax
call fcn.0045869f
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0045869f
mov ecx, dword [esp + 0x137c]
add esp, 0xc
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1370
ret