Function at 0x495620
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bdcf8
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x23c], esi
call fcn.004a8620
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x49567f
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x230], eax
mov dword [ebp - 4], esi
call fcn.004a8620
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4956ae
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 1
call fcn.004a8620
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4956de
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x21c], edi
mov byte [ebp - 4], 2
call fcn.004a8620
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x49570e
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
push 1
lea ecx, [ebp - 0x218]
push ecx
push 0x104
mov byte [ebp - 4], 3
call fcn.0049cd20
add esp, 0xc
push str.CORRECTEDINI.INI
lea ecx, [ebp - 0x238]
call fcn.00403380
mov esi, eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 4
call fcn.00403380
push esi
push eax
lea eax, [ebp - 0x22c]
mov bl, 5
push eax
mov byte [ebp - 4], bl
call fcn.00402910
add esp, 0xc
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
call fcn.00402af0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4957ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4957d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4957f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x234]
mov eax, dword [ecx]
push 0x5d1dc0
push eax
call fcn.0059adc7
mov esi, eax
add esp, 8
mov dword [ebp - 0x228], esi
test esi, esi
je 0x495ab3
mov edx, dword [ebp - 0x230]
push 0x5d3770
push edx
call fcn.0059adc7
mov ebx, eax
add esp, 8
mov dword [ebp - 0x22c], ebx
test ebx, ebx
je 0x495a89
push esi
lea eax, [ebp - 0x114]
push 0x103
push eax
call fcn.0059bc71
add esp, 0xc
test eax, eax
je 0x495a80
mov ecx, dword [ebp - 0x234]
add ecx, 8
mov dword [ebp - 0x23c], 1
mov dword [ebp - 0x240], ecx
lea esp, [esp]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495890
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x220]
call fcn.004026b0
mov ebx, dword [ebp - 0x220]
lea eax, [ebx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x495917
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x495901
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x495901
push eax
call fcn.004022e0
add esp, 4
mov dword [ebp - 0x238], eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x4958f0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov edi, dword [ebp - 0x238]
add edi, 0x10
mov dword [ebp - 0x21c], edi
jmp 0x495917
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [ebp - 0x21c]
call fcn.004026b0
mov edi, dword [ebp - 0x21c]
cmp dword [edi - 0xc], 0
jl 0x49594b
push 0x5d36cc
push edi
call fcn.0059a963
add esp, 8
test eax, eax
je 0x49594b
sub eax, edi
cmp eax, 0xffffffff
je 0x49594b
inc eax
push eax
push 0
lea ecx, [ebp - 0x21c]
call fcn.00407710
mov edi, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x240]
lea eax, [ebp - 0x21c]
push eax
push ecx
mov ecx, dword [ebp - 0x244]
call fcn.00494de0
test eax, eax
je 0x495a44
cmp dword [edi - 0xc], 0
jl 0x495a44
push 0x5d26e0
push edi
call fcn.0059a963
add esp, 8
test eax, eax
je 0x495a44
sub eax, edi
cmp eax, 0xffffffff
je 0x495a44
push eax
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x21c]
call fcn.004024f0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 7
call fcn.00402af0
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4959e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x22
lea ecx, [ebp - 0x224]
call fcn.004414e0
lea ecx, [ecx]
mov esi, dword [ebp - 0x224]
cmp dword [esi - 0xc], 0
jl 0x495a28
push 0x5d8a70
push esi
call fcn.0059a963
add esp, 8
test eax, eax
je 0x495a28
sub eax, esi
cmp eax, 0xffffffff
je 0x495a28
add eax, 3
push eax
push 0
lea ecx, [ebp - 0x224]
call fcn.00407710
jmp 0x4959f0
mov ecx, dword [ebp - 0x234]
mov eax, dword [ecx + 0xc]
push esi
push eax
lea ecx, [ebp - 0x220]
call fcn.00408720
mov ebx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x22c]
push edx
push ebx
call fcn.0059ac05
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0x114]
push 0x103
push ecx
call fcn.0059bc71
add esp, 0x14
test eax, eax
jne 0x495880
mov esi, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x22c]
push ebx
call fcn.0059ab91
add esp, 4
push esi
call fcn.0059ab91
add esp, 4
cmp dword [ebp - 0x23c], 0
je 0x495ab3
mov edx, dword [ebp - 0x234]
mov eax, dword [edx]
push 0
push eax
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495ad9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495af9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495b1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495b48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 4