Function at 0x542e58
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x542e61
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405130
mov eax, dword [ebp - 0xc]
call fcn.00405130
mov eax, dword [ebp + 0xc]
call fcn.00405130
xor eax, eax
push ebp
push 0x5435f5
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.005442a8
test eax, eax
je 0x542eb6
lea eax, [ebp - 0x38]
mov edx, 0x543610
call fcn.00404d18
jmp 0x542ebe
lea eax, [ebp - 0x38]
call fcn.00404c80
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 8]
call fcn.0040972c
cmp dword [ebp - 0x50], 0
jne 0x542edc
mov eax, dword [ebp + 8]
call fcn.00404c80
jmp 0x5435c2
cmp dword [0x67c644], 0
jne 0x542f11
lea edx, [ebp - 0x58]
mov eax, dword [0x67d730]
mov eax, dword [eax]
call fcn.004a0968
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.0040a5a0
mov edx, dword [ebp - 0x54]
mov eax, 0x67c644
mov ecx, 0x543620
call fcn.00404f8c
mov dl, 1
mov eax, dword [0x41c188]
call fcn.00403ec0
mov dword [ebp - 0x40], eax
mov dl, 1
mov eax, dword [0x41c188]
call fcn.00403ec0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x10]
call fcn.00404c80
mov edx, dword [ebp - 8]
mov eax, 0x543630
call fcn.00405284
test eax, eax
jle 0x542fb3
mov edx, dword [ebp - 8]
mov eax, 0x54363c
call fcn.00405284
test eax, eax
jle 0x542fb3
lea eax, [ebp - 0x34]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x54363c
call fcn.00405284
mov ebx, eax
mov edx, dword [ebp - 8]
mov eax, 0x543630
call fcn.00405284
sub ebx, eax
dec ebx
push ebx
mov edx, dword [ebp - 8]
mov eax, 0x543630
call fcn.00405284
mov edx, eax
inc edx
mov eax, dword [ebp - 8]
pop ecx
call fcn.004051a0
mov eax, dword [ebp - 0x34]
call fcn.0052214c
test eax, eax
je 0x542fae
mov eax, dword [ebp - 0x34]
call fcn.00409c68
mov ebx, eax
jmp 0x542fb6
or ebx, 0xffffffff
jmp 0x542fb6
or ebx, 0xffffffff
mov edx, dword [ebp - 8]
mov eax, 0x543630
call fcn.00405284
test eax, eax
jle 0x543086
mov edx, dword [ebp - 8]
mov eax, 0x54363c
call fcn.00405284
test eax, eax
jle 0x543086
test ebx, ebx
jl 0x543086
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x543648
call fcn.00405284
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004051a0
lea eax, [ebp - 0x1c]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x543654
call fcn.00405284
mov edx, eax
mov ecx, 4
mov eax, dword [ebp - 8]
call fcn.004051a0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
call fcn.00542180
test ebx, ebx
jle 0x543156
mov dword [ebp - 0x48], ebx
mov esi, 1
push dword [ebp - 0x14]
push 0x543660
lea edx, [ebp - 0x60]
mov eax, esi
call fcn.00409afc
push dword [ebp - 0x60]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x5c]
mov edx, 4
call fcn.00405000
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec dword [ebp - 0x48]
jne 0x54304b
jmp 0x543156
mov edx, dword [ebp - 8]
mov eax, 0x54366c
call fcn.00405284
test eax, eax
jle 0x54314b
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00404d18
jmp 0x54313f
mov edx, dword [ebp - 0x14]
mov eax, 0x54366c
call fcn.00405284
test eax, eax
jne 0x5430cc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x543156
lea eax, [ebp - 0x68]
push eax
mov edx, dword [ebp - 0x14]
mov eax, 0x54366c
call fcn.00405284
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.004051a0
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.0040972c
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x70]
push eax
mov edx, dword [ebp - 0x14]
mov eax, 0x54366c
call fcn.00405284
inc eax
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404f40
mov ecx, eax
mov eax, dword [ebp - 0x14]
pop edx
call fcn.004051a0
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.0040972c
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x14]
call fcn.00404d18
cmp dword [ebp - 0x14], 0
jne 0x5430ab
jmp 0x543156
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp + 0xc], 0
je 0x5431b6
mov edx, dword [ebp + 0xc]
mov eax, 0x543678
call fcn.00405284
mov esi, eax
test esi, esi
jle 0x5431c1
lea eax, [ebp + 0xc]
push eax
lea edx, [esi + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp + 0xc]
call fcn.004051a0
mov eax, dword [ebp + 0xc]
call fcn.00404f40
test eax, eax
jle 0x5431c1
mov dword [ebp - 0x48], eax
mov esi, 1
lea eax, [ebp + 0xc]
call fcn.00405198
mov edx, dword [ebp + 0xc]
movzx edx, byte [edx + esi - 1]
sub edx, 0x50
mov byte [eax + esi - 1], dl
inc esi
dec dword [ebp - 0x48]
jne 0x543197
jmp 0x5431c1
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.00542be8
cmp dword [ebp + 0xc], 0
je 0x5431d4
lea eax, [ebp - 0x18]
mov edx, dword [ebp + 0xc]
call fcn.00404d18
jmp 0x5431e2
lea eax, [ebp - 0x18]
mov edx, dword [0x67c658]
call fcn.00404d18
mov eax, dword [ebp - 0x18]
call fcn.00542a94
mov dword [ebp - 0x3c], 0xffffffff
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x18]
call fcn.0054245c
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
mov eax, dword [0x67f088]
call fcn.0040602c
cmp ebx, eax
je 0x543257
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
mov eax, 0x67f088
mov ecx, 1
mov edx, dword [0x542e30]
call fcn.004061e8
add esp, 4
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
cmp esi, 0
jl 0x543257
mov eax, dword [0x67f088]
mov dword [eax + esi*4], 0xffffffff
dec esi
cmp esi, 0xffffffff
jne 0x543245
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5434d8
inc eax
mov dword [ebp - 0x48], eax
xor esi, esi
lea ecx, [ebp - 0x18]
mov edx, esi
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
call fcn.00542180
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x38]
call fcn.00404f48
test esi, esi
jne 0x5432e7
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5432e7
mov eax, dword [0x67f088]
cmp dword [eax], 0xffffffff
jne 0x5432e7
lea ecx, [ebp - 0x78]
xor edx, edx
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x78]
call fcn.00542d4c
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5432dc
mov eax, dword [0x67f088]
xor edx, edx
mov dword [eax], edx
jmp 0x5432e7
mov eax, dword [0x67f088]
mov dword [eax], 1
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5434a1
inc eax
mov dword [ebp - 0x4c], eax
xor ebx, ebx
test ebx, ebx
jle 0x543348
test esi, esi
jne 0x543348
mov eax, dword [0x67f088]
cmp dword [eax + ebx*4], 0xffffffff
jne 0x543348
lea ecx, [ebp - 0x7c]
mov edx, ebx
mov eax, dword [ebp - 0x40]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x7c]
call fcn.00542d4c
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x54333c
mov eax, dword [0x67f088]
xor edx, edx
mov dword [eax + ebx*4], edx
jmp 0x543348
mov eax, dword [0x67f088]
mov dword [eax + ebx*4], 1
mov eax, dword [0x67f088]
cmp dword [eax + ebx*4], 0
je 0x543497
lea ecx, [ebp - 0x80]
mov edx, ebx
mov eax, dword [ebp - 0x40]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x80]
push 0x543684
push dword [ebp - 0x28]
push 0x543684
push dword [ebp - 0x2c]
push 0x543684
push dword [ebp - 0x30]
push 0x543684
push dword [ebp - 0x18]
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.00405000
cmp dword [0x67c640], 0
je 0x5433ea
lea eax, [ebp - 0x84]
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x67c644]
call fcn.00404f8c
mov eax, dword [ebp - 0x84]
call fcn.0040a15c
test al, al
je 0x5433ea
mov dword [ebp - 0x3c], 1
push dword [ebp - 0x10]
push dword [0x67c644]
push dword [ebp - 0x18]
push 0x54366c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405000
jmp 0x5434a1
mov eax, dword [ebp - 0x24]
call fcn.0040a15c
test al, al
je 0x543497
cmp dword [0x67c640], 0
je 0x54347d
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x67c644]
call fcn.00404f8c
mov eax, dword [ebp - 0x88]
call fcn.0040a15c
test al, al
jne 0x543456
push 0
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x67c644]
call fcn.00404f8c
mov eax, dword [ebp - 0x8c]
call fcn.00405140
push eax
mov eax, dword [ebp - 0x24]
call fcn.00405140
push eax
call sub.kernel32.dll_CopyFileA
push dword [ebp - 0x10]
push dword [0x67c644]
push dword [ebp - 0x18]
push 0x54366c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405000
mov dword [ebp - 0x3c], 1
jmp 0x5434a1
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push 0x54366c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405000
jmp 0x5434a1
inc ebx
dec dword [ebp - 0x4c]
jne 0x5432fe
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x5434ce
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp ebx, eax
jg 0x5434c9
mov eax, dword [ebp - 0x24]
call fcn.0040a15c
test al, al
je 0x5434c9
mov dword [ebp - 0x3c], 1
jmp 0x5434ce
xor eax, eax
mov dword [ebp - 0x3c], eax
inc esi
dec dword [ebp - 0x48]
jne 0x54326e
cmp dword [ebp - 0xc], 0
je 0x54357b
cmp dword [ebp - 0x3c], 1
je 0x54357b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x27c]
mov edx, 0x543690
call fcn.0040508c
jne 0x54350a
cmp dword [0x67c63c], 0
je 0x54357b
lea eax, [ebp - 0x20]
call fcn.00542570
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x54357b
inc eax
mov dword [ebp - 0x48], eax
xor esi, esi
lea ecx, [ebp - 0x18]
mov edx, esi
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push 1
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
call fcn.00404f8c
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00543698
test al, al
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x54366c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405000
inc esi
dec dword [ebp - 0x48]
jne 0x543525
mov eax, dword [ebp - 0x10]
call fcn.00404f40
test eax, eax
jle 0x5435a3
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404f40
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004051a0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404cd4
mov dl, 1
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx - 4]
mov dl, 1
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5435fc
lea eax, [ebp - 0x90]
mov edx, 0x11
call fcn.00404ca4
lea eax, [ebp - 0x38]
mov edx, 0xd
call fcn.00404ca4
lea eax, [ebp + 0xc]
call fcn.00404c80
ret