Function at 0x464360
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551073
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x4d4]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edi
je 0x464ab4
mov al, byte [ebx + 0x46c]
test al, al
jne 0x464ab4
lea esi, [ebx + 0x3f0]
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x4d4], edi
je 0x464aad
mov al, byte [ebx + 0x46c]
test al, al
jne 0x464aad
mov ecx, ebx
call fcn.00471260
cmp eax, edi
jne 0x464aad
mov eax, dword [ebx + 0x4fc]
mov ecx, dword [ebx + 0x250]
cmp eax, edi
mov dword [ebp - 0x1c], eax
setne byte [ebp - 0x11]
cmp eax, ecx
jge 0x464aad
cmp dword [ebx + 0x4d4], edi
je 0x464aad
mov al, byte [ebx + 0x46c]
test al, al
jne 0x464aad
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0xfc], 0x5602e8
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov edi, dword [ebx + 0x464]
mov byte [ebp - 4], 1
mov byte [ebp + 0xb], 0
mov eax, dword [ebx + 0xb0]
mov dword [ebp - 0x18], edi
cmp edi, eax
jge 0x464903
lea eax, [ebp - 0xfc]
lea esi, [ebx + 8]
push 0
push eax
push edi
mov ecx, esi
call fcn.00510d00
test al, al
je 0x46471d
cmp byte [ebp - 0xbf], 1
jne 0x46471d
mov al, byte [ebp - 0xbc]
test al, al
je 0x46471d
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, ebx
call fcn.0046aae0
test eax, eax
jne 0x4644f9
lea edx, [ebp - 0xfc]
mov ecx, ebx
push edx
call fcn.0046a820
test eax, eax
je 0x46471d
cmp byte [ebp - 0xc0], 3
jne 0x464667
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x464667
mov ecx, dword [ebx + 0x4cc]
mov eax, dword [ebx + 0x40c]
push 0
push 0x1430
inc ecx
push 0x111
push eax
mov byte [ebp - 0xbf], 0
mov byte [ebp - 0xb0], 1
mov dword [ebx + 0x4cc], ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x46455d
mov al, byte [ebx + 0x287]
test al, al
je 0x46455d
xor esi, esi
jmp 0x4645b7
mov ecx, dword [ebp - 0x98]
push 0x5c
push ecx
call fcn.0051c7b0
add esp, 8
test eax, eax
je 0x464575
inc eax
jmp 0x46457b
mov eax, dword [ebp - 0x98]
test edi, edi
sete dl
push edx
push eax
mov ecx, ebx
call fcn.00467530
mov esi, eax
test esi, esi
je 0x4645b7
lea eax, [ebp - 0xfc]
mov ecx, ebx
push eax
call fcn.0046aae0
mov esi, eax
test esi, esi
je 0x4645b7
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, ebx
call fcn.0046ad20
mov esi, eax
test esi, esi
jne 0x4645be
mov byte [ebp - 0xbc], 0
lea edx, [ebp - 0xfc]
lea ecx, [ebx + 8]
push edx
push edi
call fcn.00511ee0
test esi, esi
je 0x4645f5
mov edx, dword [ebx + 0x4b8]
inc edx
mov eax, edx
mov dword [ebx + 0x4b8], edx
push eax
mov eax, dword [ebx + 0x40c]
push 0x1401
push 0x111
push eax
jmp 0x464607
mov ecx, dword [ebx + 0x40c]
push edi
push 0x13fe
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [ebx + 0x52c]
push edi
push 0
push 0x140e
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x250]
inc eax
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jl 0x46471d
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0xfc]
mov dword [ebx + 0x464], edi
mov byte [ebp - 4], 0
call fcn.0043c730
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xfc]
mov byte [ebp - 0xbf], 2
push ecx
push edi
mov ecx, esi
call fcn.00511ee0
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xac]
lea edx, [ebp - 0x54]
push 1
push edx
push eax
push ecx
lea ecx, [ebx + 0x2e0]
mov byte [ebp - 4], 2
call fcn.00412720
test eax, eax
je 0x4648c3
mov al, byte [ebp - 0x2b]
test al, al
je 0x4648c3
lea edx, [ebp - 0xfc]
push 1
push edx
push edi
mov ecx, ebx
call fcn.0046fbf0
mov esi, eax
test esi, esi
mov dword [ebp - 0x24], esi
jne 0x464723
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00537b04
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.00537b04
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00537b04
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00537b04
inc edi
jmp 0x464489
mov eax, dword [ebx + 0x498]
push edi
push eax
push 0
lea ecx, [esi + 0x20]
call fcn.004fdf80
mov ecx, dword [esi + 0x50]
mov edx, dword [ebp - 0x50]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4648c3
mov edx, dword [ebp - 0x48]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x464773
push edx
lea eax, [esi + 0x1d8]
push 0x597ddc
push eax
call fcn.0053091a
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov dword [esi + 0x768], ecx
mov edx, dword [ebp - 0x3c]
mov dword [esi + 0x410], edx
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x414], eax
mov ecx, dword [ebp - 0x34]
mov dword [esi + 0x644], ecx
mov edx, dword [ebp - 0x4c]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4647e8
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005380a1
mov edx, eax
mov eax, dword [ebp - 0x24]
or ecx, 0xffffffff
add esp, 4
mov dword [eax + 0x1d0], edx
mov edi, dword [ebp - 0x4c]
xor eax, eax
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 [ebp - 0x24]
mov ecx, dword [0x5ba8dc]
push esi
mov byte [ebp - 0xb3], 1
call fcn.004971b0
push 0
mov ecx, esi
call fcn.004f9120
push esi
call fcn.00451730
mov ecx, dword [0x5ba8e0]
mov byte [esi + 0x76c], 1
mov dword [esi], ecx
mov al, byte [ebx + 0x288]
add esp, 4
test al, al
je 0x464851
mov eax, dword [ebx + 0x4c0]
mov edx, dword [ebx + 0x498]
mov edi, dword [ebp - 0x18]
inc eax
mov byte [ebp - 0xb2], 1
mov dword [ebx + 0x4c0], eax
mov dword [esi + 0x77c], edx
mov dword [esi + 0x780], edi
jmp 0x464854
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0xfc]
lea ecx, [ebx + 8]
push eax
push edi
call fcn.00511ee0
push edi
mov ecx, ebx
call fcn.0046a1d0
mov ecx, dword [ebp - 0x50]
push ecx
push 0
push edi
mov ecx, ebx
call fcn.00465b10
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.00537b04
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.00537b04
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 8
call fcn.00537b04
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
call fcn.00537b04
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00537b04
mov edi, dword [ebp - 0x18]
inc edi
jmp 0x464489
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call fcn.00537b04
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xd
call fcn.00537b04
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.00537b04
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xb
call fcn.00537b04
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00537b04
mov al, byte [ebp + 0xb]
mov dword [ebx + 0x464], edi
test al, al
jne 0x4649d2
mov edi, dword [ebx + 0x468]
cmp edi, dword [ebx + 0xb0]
jge 0x4649cb
lea edx, [ebp - 0xfc]
lea esi, [ebx + 8]
push 0
push edx
push edi
mov ecx, esi
call fcn.00510d00
test al, al
je 0x4649c5
cmp byte [ebp - 0xbf], 3
jne 0x4649c5
mov al, byte [ebp - 0xbc]
test al, al
jne 0x464959
test edi, edi
jne 0x4649c5
lea eax, [ebp - 0xfc]
mov ecx, ebx
push eax
call fcn.0046aae0
test eax, eax
jne 0x46497d
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, ebx
call fcn.0046a820
test eax, eax
je 0x4649c5
mov ecx, dword [ebp - 0xac]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x4649a7
mov cl, byte [eax + ecx - 1]
cmp cl, 0x27
je 0x464998
cmp cl, 0x22
jne 0x4649a7
dec eax
push 0
push eax
lea ecx, [ebp - 0xac]
call fcn.00538038
lea edx, [ebp - 0xfc]
mov ecx, esi
push edx
push edi
mov byte [ebp - 0xbf], 5
call fcn.00511ee0
mov dword [ebx + 0x468], edi
jmp 0x4649d2
inc edi
jmp 0x46491a
mov al, byte [ebp + 0xb]
test al, al
je 0x4649d6
test edi, edi
jge 0x464a0e
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0
call fcn.0043c730
mov al, byte [ebp - 0x11]
test al, al
jne 0x464a05
mov eax, dword [ebx + 0x408]
push 0
push 0x1413
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0x20]
push ecx
jmp 0x464aae
lea eax, [ebp - 0xfc]
mov ecx, ebx
push eax
mov byte [ebp - 0x11], 1
call fcn.0046a820
lea ecx, [ebp - 0xfc]
push ecx
push edi
push eax
push 0x1e
mov ecx, ebx
call fcn.00464c30
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x250]
inc eax
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jl 0x464a58
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0
call fcn.0043c730
mov ecx, dword [ebp - 0x20]
push ecx
jmp 0x464aae
mov edx, dword [ebx + 0x530]
push edx
call fcn.004b32d0
add esp, 4
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0
call fcn.0043c730
mov esi, dword [ebp - 0x20]
xor edi, edi
jmp 0x4643fe
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret