Function at 0x4d58e0
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x648823
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x10c]
mov dword [ebp - 4], 0
cmp dword [esi + 0x4f4], 0
je 0x4d5b89
cmp byte [esi + 0x484], 0
jne 0x4d5b89
lea edi, [esi + 0x3f8]
mov dword [ebp - 0x28], edi
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x4f4], 0
je 0x4d5f34
cmp byte [esi + 0x484], 0
jne 0x4d5f34
mov ecx, esi
call fcn.004cee30
test eax, eax
jne 0x4d5f34
mov eax, dword [esi + 0x51c]
mov dword [ebp - 0x1c], eax
test eax, eax
setne byte [ebp - 0x12]
cmp eax, dword [esi + 0x258]
jge 0x4d5f34
jmp 0x4d59a0
cmp dword [esi + 0x4f4], 0
je 0x4d5f34
cmp byte [esi + 0x484], 0
jne 0x4d5f34
lea ecx, [ebp]
call fcn.0045d970
mov byte [ebp - 4], 1
mov byte [ebp - 0x11], 0
mov ebx, dword [esi + 0x47c]
mov dword [ebp - 0x24], ebx
cmp ebx, dword [esi + 0xb0]
jge 0x4d5dac
lea edi, [esi + 8]
push 0
lea eax, [ebp]
push eax
push ebx
mov ecx, edi
call fcn.005df130
test al, al
je 0x4d5d93
cmp byte [ebp + 0x3d], 1
jne 0x4d5d93
cmp byte [ebp + 0x40], 0
je 0x4d5d93
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.004c7120
test eax, eax
jne 0x4d5a32
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.004c7000
test eax, eax
jne 0x4d5a32
test ebx, ebx
jne 0x4d5d93
cmp byte [ebp + 0x3c], 3
jne 0x4d5bae
cmp dword [ebp + 0xc0], 0
jne 0x4d5bae
mov byte [ebp + 0x3d], 0
mov byte [ebp + 0x4c], 1
mov edi, 1
add dword [esi + 0x4ec], edi
push 0
push 0x1430
push 0x111
mov eax, dword [esi + 0x414]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x20], 0
je 0x4d5a8e
cmp byte [esi + 0x28f], 0
je 0x4d5a8e
xor edi, edi
mov dword [ebp - 0x20], edi
jmp 0x4d5af8
mov eax, dword [ebp + 0x5c]
test eax, eax
jne 0x4d5a98
lea eax, [ebp + 0x60]
push 0x5c
push eax
call fcn.006152e7
add esp, 8
test eax, eax
je 0x4d5aac
add eax, 2
jmp 0x4d5ab6
mov eax, dword [ebp + 0x5c]
test eax, eax
jne 0x4d5ab6
lea eax, [ebp + 0x60]
test ebx, ebx
sete cl
movzx edx, cl
push edx
push eax
mov ecx, esi
call fcn.004cb430
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4d5af8
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004c7120
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4d5af8
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.004c6770
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x4d5afc
mov byte [ebp + 0x40], 0
lea edx, [ebp]
push edx
push ebx
lea ecx, [esi + 8]
call fcn.005ddf80
test edi, edi
je 0x4d5b2d
inc dword [esi + 0x4d8]
mov eax, dword [esi + 0x4d8]
push eax
push 0x1401
push 0x111
mov eax, dword [esi + 0x414]
push eax
jmp 0x4d5b3f
push ebx
push 0x13fe
push 0x111
mov ecx, dword [esi + 0x414]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push ebx
push 0
push 0x140e
mov edx, dword [esi + 0x54c]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [esi + 0x258]
jl 0x4d5d93
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x47c], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0045dac0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x104
mov esp, ebp
pop ebp
ret
mov byte [ebp + 0x3d], 2
lea ecx, [ebp]
push ecx
push ebx
mov ecx, edi
call fcn.005ddf80
lea ecx, [ebp + 0xc8]
call fcn.00420ef0
mov byte [ebp - 4], 2
push 1
lea edx, [ebp + 0xc8]
push edx
mov eax, dword [ebp + 0x84]
push eax
mov ecx, dword [ebp + 0x50]
push ecx
lea ecx, [esi + 0x2f8]
call fcn.00420e50
test eax, eax
je 0x4d5d99
cmp byte [ebp + 0xf9], 0
je 0x4d5d99
push 1
lea edx, [ebp]
push edx
push ebx
mov ecx, esi
call fcn.004c9080
mov edi, eax
test edi, edi
je 0x4d5d84
push ebx
mov eax, dword [esi + 0x4b0]
push eax
push 0
lea ecx, [edi + 0x20]
call fcn.005c90b0
mov eax, dword [ebp + 0xcc]
test eax, eax
jne 0x4d5c3b
lea eax, [ebp + 0xd0]
push 0
mov ecx, dword [edi + 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4d5d99
mov edx, dword [ebp + 0xdc]
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x18], ecx
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d5c60
sub eax, dword [ebp - 0x18]
je 0x4d5c81
push edx
push 0x66dea8
lea edx, [edi + 0xe4]
push edx
call fcn.00402f70
add esp, 0xc
mov eax, dword [ebp + 0xf4]
mov dword [edi + 0xabc], eax
mov ecx, dword [ebp + 0xe8]
mov dword [edi + 0x4f0], ecx
mov edx, dword [ebp + 0xec]
mov dword [edi + 0x4f4], edx
mov eax, dword [ebp + 0xf0]
mov dword [edi + 0x944], eax
mov eax, dword [ebp + 0xd8]
mov ecx, eax
lea edx, [ecx + 1]
mov dword [ebp - 0x18], edx
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4d5cc0
sub ecx, dword [ebp - 0x18]
je 0x4d5cfb
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d5cd0
sub eax, edx
inc eax
push eax
call fcn.005e9aa7
add esp, 4
mov dword [edi + 0xdc], eax
mov ecx, dword [ebp + 0xd8]
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4d5cf1
mov byte [ebp + 0x49], 1
push edi
mov ecx, dword [0x753164]
call fcn.0050aef0
push 0
mov ecx, edi
call fcn.005ac8c0
push edi
call fcn.004ac120
add esp, 4
mov eax, dword [0x7531f4]
mov dword [edi], eax
mov byte [edi + 0xac0], 1
cmp byte [esi + 0x290], 0
je 0x4d5d50
mov byte [ebp + 0x4a], 1
inc dword [esi + 0x4e0]
mov ecx, dword [esi + 0x4b0]
mov dword [edi + 0xad0], ecx
mov dword [edi + 0xad4], ebx
lea edx, [ebp]
push edx
push ebx
lea ecx, [esi + 8]
call fcn.005ddf80
push ebx
mov ecx, esi
call fcn.004d5350
mov eax, dword [ebp + 0xcc]
test eax, eax
jne 0x4d5d75
lea eax, [ebp + 0xd0]
push eax
push 0
push ebx
mov ecx, esi
call fcn.004d33d0
mov byte [ebp - 0x12], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc8]
call fcn.00420f70
inc ebx
jmp 0x4d59d0
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc8]
call fcn.00420f70
mov dword [esi + 0x47c], ebx
cmp byte [ebp - 0x11], 0
jne 0x4d5e73
mov ebx, dword [esi + 0x480]
mov dword [ebp - 0x24], ebx
cmp ebx, dword [esi + 0xb0]
jge 0x4d5ebe
lea ecx, [esi + 8]
push 0
lea eax, [ebp]
push eax
push ebx
call fcn.005df130
test al, al
je 0x4d5eb8
cmp byte [ebp + 0x3d], 3
jne 0x4d5eb8
cmp byte [ebp + 0x40], 0
jne 0x4d5e00
test ebx, ebx
jne 0x4d5eb8
lea ecx, [ebp]
push ecx
mov ecx, esi
call fcn.004c7120
test eax, eax
jne 0x4d5e26
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.004c7000
test eax, eax
jne 0x4d5e26
test ebx, ebx
jne 0x4d5eb8
mov eax, dword [ebp + 0x50]
mov eax, dword [eax - 0xc]
test eax, eax
jle 0x4d5e58
lea edi, [eax - 1]
push edi
lea ecx, [ebp + 0x50]
call fcn.004151d0
cmp al, 0x27
je 0x4d5e4d
push edi
lea ecx, [ebp + 0x50]
call fcn.004151d0
cmp al, 0x22
jne 0x4d5e58
push 0
push edi
lea ecx, [ebp + 0x50]
call fcn.00404060
mov byte [ebp + 0x3d], 5
lea ecx, [ebp]
push ecx
push ebx
lea ecx, [esi + 8]
call fcn.005ddf80
mov byte [ebp - 0x11], 1
mov dword [esi + 0x480], ebx
test ebx, ebx
jge 0x4d5ecd
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0045dac0
cmp byte [ebp - 0x12], 0
jne 0x4d5ea2
push 0
push 0x1413
push 0x111
mov edx, dword [esi + 0x410]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
jmp 0x4d5b89
inc ebx
jmp 0x4d5dc2
cmp byte [ebp - 0x11], 0
jne 0x4d5e73
mov dword [ebp - 0x24], 0xffffffff
jmp 0x4d5e77
mov byte [ebp - 0x12], 1
test ebx, ebx
jne 0x4d5eda
lea eax, [ebx + 1]
jmp 0x4d5ee5
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.004c7000
lea ecx, [ebp]
push ecx
push ebx
push eax
push 0x1e
mov ecx, esi
call fcn.004c98b0
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [esi + 0x258]
jl 0x4d5f11
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0045dac0
jmp 0x4d5ea2
mov ecx, dword [esi + 0x550]
push ecx
call fcn.00531eb0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0045dac0
mov edi, dword [ebp - 0x28]
jmp 0x4d59a0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4d5b89