Function at 0x402bd4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce0
mov eax, 0x62bcf8
push ebx
push esi
push edi
call fcn.005da0b4
mov word [ebp - 0x2b0], 0x14
xor ecx, ecx
xor edx, edx
mov dword [0x756090], edx
mov dword [ebp - 0x140], ecx
inc dword [ebp - 0x2a4]
mov eax, dword [0x6772f8]
lea edx, [ebp - 0x140]
mov eax, dword [eax]
call fcn.00565d9c
lea eax, [ebp - 0x140]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x144], edx
lea edx, [ebp - 0x144]
inc dword [ebp - 0x2a4]
call fcn.005c1664
lea eax, [ebp - 0x144]
push eax
mov edx, 0x6264e1
lea eax, [ebp - 0x148]
call fcn.005e6f90
inc dword [ebp - 0x2a4]
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x148]
inc dword [ebp - 0x2a4]
lea ecx, [ebp - 8]
pop eax
call fcn.005e7270
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0x148]
mov edx, 2
call fcn.005e7218
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0x144]
mov edx, 2
call fcn.005e7218
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0x140]
mov edx, 2
call fcn.005e7218
mov word [ebp - 0x2b0], 8
mov word [ebp - 0x2b0], 0x20
xor ecx, ecx
mov eax, dword [0x6772f8]
mov dword [ebp - 0x14c], ecx
lea edx, [ebp - 0x14c]
inc dword [ebp - 0x2a4]
mov eax, dword [eax]
call fcn.00565d9c
lea eax, [ebp - 0x14c]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x150], edx
lea edx, [ebp - 0x150]
inc dword [ebp - 0x2a4]
call fcn.005c1664
lea eax, [ebp - 0x150]
push eax
mov edx, 0x6264ed
lea eax, [ebp - 0x154]
call fcn.005e6f90
inc dword [ebp - 0x2a4]
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x154]
inc dword [ebp - 0x2a4]
lea ecx, [ebp - 0xc]
pop eax
call fcn.005e7270
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0x154]
mov edx, 2
call fcn.005e7218
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0x150]
mov edx, 2
call fcn.005e7218
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0x14c]
mov edx, 2
call fcn.005e7218
mov word [ebp - 0x2b0], 8
mov eax, dword [ebp - 8]
call fcn.005c1410
test al, al
jne 0x402dd4
mov eax, dword [ebp - 0xc]
call fcn.005c1410
test al, al
jne 0x402da9
call fcn.00404964
jmp 0x402dd4
push 0
mov edx, dword [ebp - 8]
test edx, edx
je 0x402db7
mov ecx, dword [ebp - 8]
jmp 0x402dbc
mov ecx, 0x6264fa
push ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402dc9
mov edx, dword [ebp - 0xc]
jmp 0x402dce
mov edx, 0x6264f9
push edx
call sub.KERNEL32.DLL_CopyFileA
mov word [ebp - 0x2b0], 0x2c
mov eax, dword [ebp - 8]
test eax, eax
je 0x402de9
mov ebx, dword [ebp - 8]
jmp 0x402dee
mov ebx, 0x6264fb
lea eax, [ebp - 0x84]
mov dword [ebp - 0x13c], eax
lea edx, [ebp - 0x84]
push edx
call fcn.00403a10
pop ecx
add dword [ebp - 0x2a4], 7
mov ecx, 0x63d534
mov dword [ebp - 0x138], ecx
mov eax, 0x63d540
mov edx, dword [ebp - 0x13c]
mov dword [edx], eax
xor ecx, ecx
mov dword [ebp - 0x134], ecx
push 0
mov eax, dword [ebp - 0x13c]
push eax
call fcn.00403cc0
add esp, 8
mov edx, 0x63d550
inc dword [ebp - 0x2a4]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x13c]
mov ecx, 0x63d55c
lea edx, [ebp - 0x12c]
mov dword [eax], ecx
push edx
call fcn.00403a7c
pop ecx
add dword [ebp - 0x2a4], 4
lea ecx, [ebp - 0x12c]
push ecx
mov eax, dword [ebp - 0x13c]
push eax
call fcn.00403cc0
add esp, 8
lea edx, [ebp - 0xe8]
push 0xc
push ebx
push edx
call fcn.0060167c
add esp, 0xc
test al, al
je 0x402ea5
lea ecx, [ebp - 0x12c]
jmp 0x402ea7
xor ecx, ecx
test ecx, ecx
jne 0x402edb
mov ebx, dword [ebp - 0x13c]
mov esi, dword [ebx + 8]
or esi, 4
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x402ec2
mov edi, esi
jmp 0x402ec7
mov edi, esi
or edi, 1
mov dword [ebx + 8], edi
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x14]
and eax, edx
je 0x402edb
push ebx
call fcn.005fd94c
pop ecx
inc dword [ebp - 0x2a4]
mov word [ebp - 0x2b0], 8
mov ecx, dword [ebp - 0x13c]
test byte [ecx + 8], 5
setne al
and eax, 1
test al, al
je 0x402fbf
mov word [ebp - 0x2b0], 0x44
mov edx, 0x6264fc
lea eax, [ebp - 0x158]
call fcn.005e6f90
inc dword [ebp - 0x2a4]
mov eax, dword [eax]
call fcn.0056f18c
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0x158]
mov edx, 2
call fcn.005e7218
mov eax, 1
push eax
dec dword [ebp - 0x2a4]
sub dword [ebp - 0x2a4], 4
push 2
lea edx, [ebp - 0x12c]
push edx
call fcn.0040402c
add esp, 8
dec dword [ebp - 0x2a4]
dec dword [ebp - 0x2a4]
sub dword [ebp - 0x2a4], 6
push 0
lea ecx, [ebp - 0x84]
push ecx
call fcn.005fdbd8
add esp, 8
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005e7218
dec dword [ebp - 0x2a4]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005e7218
pop eax
mov edx, dword [ebp - 0x2c0]
mov dword fs:[0], edx
jmp 0x403948
push 0x50
lea ecx, [ebp - 0x310]
push ecx
lea eax, [ebp - 0x13c]
push eax
call fcn.004040dc
add esp, 0xc
lea eax, [ebp - 0x310]
mov edx, 0x626511
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403004
test cl, cl
je 0x402ffe
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403004
add eax, 2
add edx, 2
test cl, cl
jne 0x402fe2
je 0x4034da
lea eax, [ebp - 0x12c]
push eax
call fcn.00404788
pop ecx
test eax, eax
jne 0x403045
mov ebx, dword [ebp - 0x13c]
mov esi, dword [ebx + 8]
or esi, 4
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x40302c
mov edi, esi
jmp 0x403031
mov edi, esi
or edi, 1
mov dword [ebx + 8], edi
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x14]
and eax, edx
je 0x403045
push ebx
call fcn.005fd94c
pop ecx
push 1
call fcn.0041a2a4
pop ecx
mov edx, 0x626537
mov word [ebp - 0x2b0], 0x50
lea eax, [ebp - 0x28c]
call fcn.005e6f90
inc dword [ebp - 0x2a4]
mov eax, dword [eax]
call fcn.0056f18c
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0x28c]
mov edx, 2
call fcn.005e7218
mov eax, dword [ebp - 0xc]
call fcn.005c1410
test al, al
jne 0x40309c
call fcn.00404964
jmp 0x4030cf
push 0
mov edx, dword [ebp - 8]
test edx, edx
je 0x4030aa
mov ecx, dword [ebp - 8]
jmp 0x4030af
mov ecx, 0x62656d
push ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4030bc
mov edx, dword [ebp - 0xc]
jmp 0x4030c1
mov edx, 0x62656c
push edx
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
setne al
and eax, 1
mov word [ebp - 0x2b0], 0x5c
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4030e4
mov ebx, dword [ebp - 8]
jmp 0x4030e9
mov ebx, 0x62656e
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x288], eax
lea edx, [ebp - 0x1d0]
push edx
call fcn.00403a10
pop ecx
add dword [ebp - 0x2a4], 7
mov ecx, 0x63d534
mov dword [ebp - 0x284], ecx
mov eax, 0x63d540
mov edx, dword [ebp - 0x288]
mov dword [edx], eax
xor ecx, ecx
mov dword [ebp - 0x280], ecx
push 0
mov eax, dword [ebp - 0x288]
push eax
call fcn.00403cc0
add esp, 8
mov edx, 0x63d550
inc dword [ebp - 0x2a4]
mov dword [ebp - 0x284], edx
mov eax, dword [ebp - 0x288]
mov ecx, 0x63d55c
lea edx, [ebp - 0x278]
mov dword [eax], ecx
push edx
call fcn.00403a7c
pop ecx
add dword [ebp - 0x2a4], 4
lea ecx, [ebp - 0x278]
push ecx
mov eax, dword [ebp - 0x288]
push eax
call fcn.00403cc0
add esp, 8
lea edx, [ebp - 0x234]
push 0xc
push ebx
push edx
call fcn.0060167c
add esp, 0xc
test al, al
je 0x4031a0
lea ecx, [ebp - 0x278]
jmp 0x4031a2
xor ecx, ecx
test ecx, ecx
jne 0x4031d6
mov ebx, dword [ebp - 0x288]
mov esi, dword [ebx + 8]
or esi, 4
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x4031bd
mov edi, esi
jmp 0x4031c2
mov edi, esi
or edi, 1
mov dword [ebx + 8], edi
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x14]
and eax, edx
je 0x4031d6
push ebx
call fcn.005fd94c
pop ecx
inc dword [ebp - 0x2a4]
mov word [ebp - 0x2b0], 0x74
push 0x50
lea ecx, [ebp - 0x310]
push ecx
lea eax, [ebp - 0x288]
push eax
call fcn.004040dc
add esp, 0xc
lea eax, [ebp - 0x310]
mov edx, 0x62656f
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403228
test cl, cl
je 0x40337b
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403228
add eax, 2
add edx, 2
test cl, cl
jne 0x403208
je 0x40337b
lea eax, [ebp - 0x278]
push eax
call fcn.00404788
pop ecx
test eax, eax
jne 0x40326f
mov ebx, dword [ebp - 0x288]
mov esi, dword [ebx + 8]
or esi, 4
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x403256
mov edi, esi
jmp 0x40325b
mov edi, esi
or edi, 1
mov dword [ebx + 8], edi
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x14]
and eax, edx
je 0x40326f
push ebx
call fcn.005fd94c
pop ecx
mov word [ebp - 0x2b0], 0x80
mov edx, 0x626595
lea eax, [ebp - 0x290]
call fcn.005e6f90
inc dword [ebp - 0x2a4]
mov eax, dword [eax]
call fcn.0056f18c
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0x290]
mov edx, 2
call fcn.005e7218
mov ecx, dword [0x6772f8]
mov eax, dword [ecx]
call fcn.005658b0
mov eax, 2
push eax
dec dword [ebp - 0x2a4]
sub dword [ebp - 0x2a4], 4
push 2
lea edx, [ebp - 0x278]
push edx
call fcn.0040402c
add esp, 8
dec dword [ebp - 0x2a4]
dec dword [ebp - 0x2a4]
sub dword [ebp - 0x2a4], 6
push 0
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.005fdbd8
add esp, 8
dec dword [ebp - 0x2a4]
sub dword [ebp - 0x2a4], 4
push 2
lea eax, [ebp - 0x12c]
push eax
call fcn.0040402c
add esp, 8
dec dword [ebp - 0x2a4]
dec dword [ebp - 0x2a4]
sub dword [ebp - 0x2a4], 6
push 0
lea edx, [ebp - 0x84]
push edx
call fcn.005fdbd8
add esp, 8
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005e7218
dec dword [ebp - 0x2a4]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005e7218
pop eax
mov edx, dword [ebp - 0x2c0]
mov dword fs:[0], edx
jmp 0x403948
mov word [ebp - 0x2b0], 0x8c
mov edx, 0x6265f1
lea eax, [ebp - 0x294]
call fcn.005e6f90
inc dword [ebp - 0x2a4]
mov eax, dword [eax]
call fcn.0056f18c
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0x294]
mov edx, 2
call fcn.005e7218
mov ecx, dword [0x6772f8]
mov eax, dword [ecx]
call fcn.005658b0
mov eax, 2
push eax
dec dword [ebp - 0x2a4]
sub dword [ebp - 0x2a4], 4
push 2
lea edx, [ebp - 0x278]
push edx
call fcn.0040402c
add esp, 8
dec dword [ebp - 0x2a4]
dec dword [ebp - 0x2a4]
sub dword [ebp - 0x2a4], 6
push 0
lea ecx, [ebp - 0x1d0]
push ecx
call fcn.005fdbd8
add esp, 8
dec dword [ebp - 0x2a4]
sub dword [ebp - 0x2a4], 4
push 2
lea eax, [ebp - 0x12c]
push eax
call fcn.0040402c
add esp, 8
dec dword [ebp - 0x2a4]
dec dword [ebp - 0x2a4]
sub dword [ebp - 0x2a4], 6
push 0
lea edx, [ebp - 0x84]
push edx
call fcn.005fdbd8
add esp, 8
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005e7218
dec dword [ebp - 0x2a4]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005e7218
pop eax
mov edx, dword [ebp - 0x2c0]
mov dword fs:[0], edx
jmp 0x403948
push 0x264
push 0x6782d0
lea edx, [ebp - 0x13c]
push edx
call fcn.004040dc
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00404788
pop ecx
test eax, eax
jne 0x403534
mov ebx, dword [ebp - 0x13c]
mov esi, dword [ebx + 8]
or esi, 4
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x40351b
mov edi, esi
jmp 0x403520
mov edi, esi
or edi, 1
mov dword [ebx + 8], edi
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0x14]
and eax, edx
je 0x403534
push ebx
call fcn.005fd94c
pop ecx
fld dword [0x678424]
call fcn.005df574
mov ebx, eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x314], eax
fild dword [ebp - 0x314]
fcomp qword [0x403950]
fnstsw ax
sahf
jae 0x40356b
mov edx, dword [0x6782ec]
mov dword [0x678424], edx
fld dword [0x678428]
call fcn.005df574
mov ebx, eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x318], eax
fild dword [ebp - 0x318]
fcomp qword [0x403950]
fnstsw ax
sahf
jae 0x4035a2
mov edx, dword [0x6782fc]
mov dword [0x678428], edx
fld dword [0x67842c]
call fcn.005df574
mov ebx, eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x31c], eax
fild dword [ebp - 0x31c]
fcomp qword [0x403950]
fnstsw ax
sahf
jae 0x4035d9
mov edx, dword [0x678308]
mov dword [0x67842c], edx
fld dword [0x678430]
call fcn.005df574
mov ebx, eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x320], eax
fild dword [ebp - 0x320]
fcomp qword [0x403950]
fnstsw ax
sahf
jae 0x403610
mov edx, dword [0x678310]
mov dword [0x678430], edx
mov word [ebp - 0x2b0], 0x98
fld dword [0x403958]
fdiv dword [0x678310]
fmul dword [0x6782ec]
fmul dword [0x6782fc]
fdivr dword [0x678308]
fstp dword [0x6782e0]
fld dword [0x403958]
fdiv dword [0x678430]
fmul dword [0x678424]
mov word [ebp - 0x2b0], 0xa4
fmul dword [0x678428]
fdivr dword [0x67842c]
fstp dword [0x678420]
mov cl, byte [0x678324]
test cl, cl
je 0x40371c
mov eax, dword [0x678320]
test eax, eax
jne 0x4036c7
fld dword [0x6782f0]
fmul dword [0x678300]
fdivr dword [0x678314]
fstp dword [0x6782e4]
fld qword [0x40395c]
fmul dword [0x72ad88]
fstp dword [0x6782d8]
fld dword [0x6782d8]
fmul dword [0x6782e4]
fld xword [0x403964]
fmulp st(1)
fstp dword [0x6782e4]
jmp 0x40371c
mov edx, dword [0x678320]
dec edx
jne 0x4036f4
fld dword [0x6782f0]
fmul dword [0x678300]
fdivr dword [0x678314]
fstp dword [0x6782e4]
mov dword [0x6782d8], 0x43b40000
jmp 0x40371c
mov eax, dword [0x678320]
cmp eax, 2
jne 0x40371c
fld dword [0x6782f0]
fmul dword [0x678300]
fmul dword [0x403970]
fdivr dword [0x6783c8]
fstp dword [0x6782e4]
mov word [ebp - 0x2b0], 0x98
jmp 0x403735
mov word [ebp - 0x2b0], 0xb0
mov dl, byte [0x678325]
test dl, dl
je 0x40376c
fld dword [0x403958]
fdiv dword [0x678318]
fmul dword [0x6782f4]
fmul dword [0x678304]
fdivr dword [0x67830c]
fstp dword [0x6782e8]
mov word [ebp - 0x2b0], 0x98
jmp 0x403785
mov word [ebp - 0x2b0], 0xbc
mov word [ebp - 0x2b0], 0x98
jmp 0x4037a7
fild dword [0x6783c0]
fdiv dword [0x6782e0]
fld xword [0x403974]
fmulp st(1)
call fcn.005df574
mov word [ebp - 0x2b0], 0xc8
xor edx, edx
mov dword [0x6781b8], eax
mov dword [ebp - 0x298], edx
mov edx, 0x624234
inc dword [ebp - 0x2a4]
mov eax, 0x677f2c
lea ecx, [ebp - 0x298]
call fcn.005e7270
lea edx, [ebp - 0x298]
mov eax, 0x624234
call fcn.005e7248
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0x298]
mov edx, 2
call fcn.005e7218
mov dword [0x678374], 0xffffffff
mov dword [0x678378], 0x3fc00000
mov word [ebp - 0x2b0], 8
jmp 0x4038cf
xor eax, eax
push eax
dec dword [ebp - 0x2a4]
sub dword [ebp - 0x2a4], 4
push 2
lea edx, [ebp - 0x12c]
push edx
call fcn.0040402c
add esp, 8
dec dword [ebp - 0x2a4]
dec dword [ebp - 0x2a4]
sub dword [ebp - 0x2a4], 6
push 0
lea ecx, [ebp - 0x84]
push ecx
call fcn.005fdbd8
add esp, 8
dec dword [ebp - 0x2a4]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005e7218
dec dword [ebp - 0x2a4]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005e7218
pop eax
mov edx, dword [ebp - 0x2c0]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret