Function at 0x408790
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47f3dc
push eax
mov eax, 0x1364
mov dword fs:[0], esp
call fcn.0044d530
mov eax, dword [esp + 0x1374]
push ebx
push esi
push edi
push 0x49cc84
push eax
call fcn.0044d7eb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x4087e9
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 0x49cc44
push ecx
call fcn.0044d7eb
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x408829
push edi
call fcn.0044d6ef
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.0044dfd2
push edi
call fcn.0044de4f
push 0
push 0
push edi
mov esi, eax
call fcn.0044dfd2
lea edx, [esi + 0xa]
push edx
call fcn.0044dbfe
mov ebx, eax
add esp, 0x20
test ebx, ebx
mov dword [esp + 0x18], ebx
jne 0x408873
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.0044dd38
mov byte [ebx + esi], 0
mov dl, byte [0x4aa680]
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.0040d2b0
push str.endout
push ebx
mov esi, eax
call fcn.0040d2b0
add esp, 0x20
mov edi, eax
test esi, esi
mov dword [esp + 0x18], edi
je 0x408915
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov byte [esi], 0
call fcn.0044d76c
add esp, 8
lea ebx, [esi + 1]
test edi, edi
je 0x408921
mov byte [edi], 0
inc edi
mov dword [esp + 0x18], edi
cmp byte [ebx], 0
je 0x408dbe
test ebp, ebp
jne 0x408971
push 0x49dfb8
push ebx
call fcn.0044e608
mov esi, eax
add esp, 8
test esi, esi
jbe 0x408db0
mov edx, dword [esp + 0x10]
mov byte [esi], 0
push edx
push ebx
call fcn.0044d76c
mov edi, 0x49dfb8
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 0x408983
cmp ebp, 1
je 0x408da0
cmp ebp, 2
jne 0x408da0
push 0x49dfb0
push ebx
call fcn.0044e608
mov edx, eax
add esp, 8
test edx, edx
je 0x408da0
sub eax, ebx
cmp eax, 0x3e8
jge 0x408da0
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, 0x49dfb0
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 0x408a54
cmp cl, 0x5c
je 0x408a3a
cmp cl, 0x2f
je 0x408a3a
mov byte [esp + eax + 0x174], cl
jmp 0x408a4b
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 0x408a27
lea ecx, [esp + 0x28]
mov byte [esp + eax + 0x174], 0
call fcn.00461ed4
lea ecx, [esp + 0x28]
push 0
push ecx
lea edx, [esp + 0x17c]
push 0x49ccf4
push edx
mov dword [esp + 0x138c], 0
call fcn.00409680
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp eax, 2
jne 0x408d82
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 0x408ac8
test cl, cl
je 0x408ac4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408ac8
add eax, 2
add esi, 2
test cl, cl
jne 0x408aa4
xor eax, eax
jmp 0x408acd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408d82
lea ecx, [esp + 0x3c]
call fcn.00411630
push str.embimg
lea ecx, [esp + 0x48]
mov byte [esp + 0x1380], 1
call fcn.00463140
cmp dword [esp + 0x138c], 1
jne 0x408d46
mov eax, dword [esp + 0x44]
mov ecx, 0x4aaa70
push eax
call fcn.0041e110
test eax, eax
je 0x408d46
push 0x49df9c
lea ecx, [esp + 0x50]
call fcn.00463140
push 0x49df98
lea ecx, [esp + 0x50]
call fcn.00463393
mov ecx, dword [esp + 0x2c]
add ecx, 4
push ecx
lea ecx, [esp + 0x50]
call fcn.004633cf
push 0x49df98
lea ecx, [esp + 0x50]
call fcn.00463393
push 0x4aa680
push 0x4aa680
push 1
lea ecx, [esp + 0x48]
call fcn.00411870
mov edx, dword [0x4a624c]
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 0x408bad
test cl, cl
je 0x408ba9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x408bad
add eax, 2
add esi, 2
test cl, cl
jne 0x408b89
xor eax, eax
jmp 0x408bb2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408bcc
lea eax, [esp + 0x574]
lea ecx, [esp + 0x14]
push eax
call fcn.00463140
jmp 0x408cb8
lea ecx, [esp + 0xf74]
push 0xff
push ecx
push 0
push 0x49df90
push 0
lea ecx, [esp + 0x50]
call fcn.00413920
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 0x49df90
push eax
lea ecx, [esp + 0x4c]
call fcn.00411da0
mov ax, word [0x49df8c]
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, 0x4aaa70
call fcn.0041e4c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1380], 3
call fcn.004630f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x137c], 2
call fcn.00462fb7
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 0x49df88
call fcn.0044d76c
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call fcn.0044d76c
push esi
push 0x49df88
call fcn.0044d76c
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x137c], 1
call fcn.00462fb7
jmp 0x408d71
mov esi, dword [esp + 0x10]
push esi
push 0x49df88
call fcn.0044d76c
lea edx, [esp + 0x17c]
push esi
push edx
call fcn.0044d76c
push esi
push 0x49df88
call fcn.0044d76c
add esp, 0x18
lea ecx, [esp + 0x3c]
mov byte [esp + 0x137c], 0
call fcn.004116d0
lea ecx, [esp + 0x28]
xor ebp, ebp
mov byte [esp + 0x174], 0
mov dword [esp + 0x137c], 0xffffffff
call fcn.00461f07
mov al, byte [ebx]
mov edi, dword [esp + 0x18]
test al, al
jne 0x40892a
jmp 0x408dbe
mov eax, dword [esp + 0x10]
push eax
push ebx
call fcn.0044d76c
add esp, 8
test edi, edi
pop ebp
je 0x408dd1
mov ecx, dword [esp + 0xc]
push ecx
push edi
call fcn.0044d76c
add esp, 8
mov edx, dword [esp + 0x18]
push edx
call fcn.0044da11
mov eax, dword [esp + 0x20]
push eax
call fcn.0044d6ef
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0044d6ef
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