Function at 0x40bf80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x463cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0xd8]
test ecx, ecx
jle 0x40c382
add eax, 0xa0
push 0x47fe34
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0043696b
mov ecx, dword [edi + 8]
push str._huozai.txt
add ecx, 0xa0
lea edx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x64], 0
call fcn.0043696b
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, dword [esp + 0x18]
push 0x47fe30
push edx
call fcn.0042061f
add esp, 8
mov esi, eax
push 0x47fe20
push esi
call fcn.00420ad3
mov eax, dword [edi + 0x60]
add esp, 8
push eax
push 0x47fe1c
push esi
call fcn.00420ad3
mov edx, dword [edi + 8]
mov eax, dword [edi + 0x6c]
add esp, 0xc
xor ecx, ecx
mov edx, dword [edx + 0xd8]
test eax, eax
mov dword [esp + 0x10], edx
je 0x40c354
jmp 0x40c055
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [eax]
inc ecx
mov dword [esp + 0x28], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x10]
test eax, eax
mov dword [esp + 0x44], edx
jle 0x40c223
cmp ecx, 1
jne 0x40c223
push 0x47fe14
push esi
call fcn.00420ad3
mov eax, dword [edi + 0x10]
add esp, 8
xor ebp, ebp
test eax, eax
mov dword [esp + 0x14], ebp
jle 0x40c348
mov ecx, dword [edi + 0x64]
lea eax, [ebp*8]
neg ecx
sbb ecx, ecx
and ecx, 2
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x18]
fild dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], 0
fmul qword [eax]
mov eax, dword [esp + 0x10]
test eax, eax
fsubr qword [esp + 0x44]
fstp qword [esp + 0x3c]
jle 0x40c150
mov eax, dword [edi + 8]
mov ebx, dword [eax + 0x13c]
mov edx, dword [eax + 0xb8]
mov ecx, dword [edx]
lea eax, [ecx*8]
sub eax, ecx
mov ebp, dword [ebx + eax*8 + 0xc]
lea eax, [ebx + eax*8]
mov eax, dword [eax + 0x10]
fld qword [ebp + 0x10]
fld qword [eax + 0x10]
fld qword [esp + 0x3c]
fsub st(2)
fxch st(1)
fsub st(2)
fdivp st(1)
fstp qword [esp + 0x34]
fstp st(0)
fld qword [esp + 0x34]
fcomp qword [0x468850]
fnstsw ax
test ah, 1
jne 0x40c138
fld qword [esp + 0x34]
fcomp qword [0x468848]
fnstsw ax
test ah, 0x41
jne 0x40c1a5
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x40c0e9
mov ebp, dword [esp + 0x14]
push 2
push 1
push 1
push str._n_5d__5d__5d
push esi
call fcn.00420ad3
add esp, 0x14
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str._16.6e__16.6lf__16.6lf__16.6lf
push esi
call fcn.00420ad3
add esp, 0x28
push 0x47fdb8
push esi
call fcn.00420ad3
add esp, 8
mov eax, dword [edi + 0x10]
inc ebp
cmp ebp, eax
mov dword [esp + 0x14], ebp
jl 0x40c0a1
jmp 0x40c348
mov edx, dword [edi + 0x14]
mov ebp, dword [esp + 0x14]
lea eax, [ecx*8]
push 2
fld qword [edx + ebp*8]
sub eax, ecx
inc ecx
fstp qword [esp + 0x20]
fld qword [ebx + eax*8 + 0x30]
fmul qword [esp + 0x38]
push 1
push ecx
push str._n_5d__5d__5d
push esi
fstp qword [esp + 0x48]
call fcn.00420ad3
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
add esp, 0x14
push 0
push 0
push ecx
mov ecx, dword [esp + 0x40]
push edx
push 0
push 0
push eax
push ecx
push str._16.6e__16.6lf__16.6lf__16.6lf
push esi
call fcn.00420ad3
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
add esp, 0x28
push edx
push eax
push str.___x
push esi
call fcn.00420ad3
add esp, 0x10
jmp 0x40c190
dec ecx
push ecx
push 0x47fd9c
push esi
call fcn.00420ad3
mov eax, dword [edi + 0x1c]
add esp, 0xc
xor ebx, ebx
test eax, eax
mov dword [esp + 0x14], ebx
jle 0x40c348
mov ecx, dword [edi + 0x64]
lea eax, [ebx*8]
neg ecx
sbb ecx, ecx
and ecx, 2
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x24]
fild dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], 0
fmul qword [eax]
mov eax, dword [esp + 0x10]
test eax, eax
fsubr qword [esp + 0x44]
fstp qword [esp + 0x3c]
jle 0x40c2f8
mov eax, dword [edi + 8]
mov ebp, dword [eax + 0x13c]
mov edx, dword [eax + 0xb8]
mov ecx, dword [edx]
lea eax, [ecx*8]
sub eax, ecx
mov ebx, dword [ebp + eax*8 + 0xc]
lea eax, [ebp + eax*8]
mov eax, dword [eax + 0x10]
fld qword [ebx + 0x10]
fld qword [eax + 0x10]
fld qword [esp + 0x3c]
fsub st(2)
fxch st(1)
fsub st(2)
fdivp st(1)
fstp qword [esp + 0x34]
fstp st(0)
fld qword [esp + 0x34]
fcomp qword [0x468850]
fnstsw ax
test ah, 1
jne 0x40c2e0
fld qword [esp + 0x34]
fcomp qword [0x468848]
fnstsw ax
test ah, 0x41
jne 0x40c395
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x40c28c
mov ebx, dword [esp + 0x14]
push 2
push 1
push 1
push str._n_5d__5d__5d
push esi
call fcn.00420ad3
add esp, 0x14
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str._16.6e__16.6lf__16.6lf__16.6lf
push esi
call fcn.00420ad3
add esp, 0x28
push 0x47fdb8
push esi
call fcn.00420ad3
add esp, 8
mov eax, dword [edi + 0x1c]
inc ebx
cmp ebx, eax
mov dword [esp + 0x14], ebx
jl 0x40c244
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40c04d
push 0x47f804
push esi
call fcn.00420ad3
push esi
call fcn.00420a56
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00436722
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], 0xffffffff
call fcn.00436722
mov ecx, dword [esp + 0x50]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x20]
mov ebx, dword [esp + 0x14]
lea eax, [ecx*8]
push 0
fld qword [edx + ebx*8]
sub eax, ecx
push 0
fstp qword [esp + 0x24]
fld qword [ebp + eax*8 + 0x30]
fmul qword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
push 0
push 0
fstp qword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push edx
push eax
push 2
inc ecx
push 1
push ecx
push str._n_5d__5d__5d__16.6e__16.6lf__16.6lf__16.6lf
push esi
call fcn.00420ad3
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
add esp, 0x34
push ecx
push edx
push str.___x
push esi
call fcn.00420ad3
add esp, 0x10
jmp 0x40c338