Function at 0x40e7c0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426c5e
mov eax, dword fs:[0]
push eax
sub esp, 0x568
mov eax, dword [0x433178]
xor eax, esp
mov dword [esp + 0x560], eax
push ebx
push esi
push edi
mov eax, dword [0x433178]
xor eax, esp
push eax
lea eax, [esp + 0x578]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x34], ebx
cmp dword [ebx + 0x10], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
je 0x40fa62
mov edi, dword [eax]
mov edx, dword [eax + 4]
cmp edi, edx
je 0x40fa62
sub edx, edi
mov eax, 0x4ec4ec4f
imul edx
xor ecx, ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x40fa62
xor eax, eax
lea esp, [esp]
cmp byte [eax + edi + 0x64], 0
jne 0x40e864
inc ecx
add eax, 0x68
cmp ecx, esi
jb 0x40e850
jmp 0x40fa62
push ebx
lea eax, [esp + 0x45c]
push eax
call fcn.00410190
mov dword [esp + 0x580], 0
xorps xmm0, xmm0
movq qword [esp + 0x42c], xmm0
mov dword [esp + 0x42c], 0
mov word [esp + 0x430], 0
mov byte [esp + 0x580], 1
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0x430]
call fcn.00407730
xorps xmm0, xmm0
lea eax, [esp + 0x42c]
movq qword [esp + 0x470], xmm0
mov dword [esp + 0x470], eax
mov eax, dword [esp + 0x42c]
mov byte [esp + 0x474], 0
test eax, eax
jne 0x40e8eb
xor al, al
jmp 0x40e90d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40e903
cmp eax, 0x80
je 0x40e903
xor al, al
jmp 0x40e90d
mov byte [esp + 0x430], 1
mov al, 1
mov byte [esp + 0x16], al
mov byte [esp + 0x474], al
mov byte [esp + 0x580], 2
xorps xmm0, xmm0
movq qword [esp + 0x434], xmm0
mov dword [esp + 0x43c], 0
mov dword [esp + 0x434], 0
mov dword [esp + 0x438], 0
mov dword [esp + 0x43c], 0
mov byte [esp + 0x580], 3
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x438]
mov byte [esp + 0x1b], 0
push eax
push ebx
call fcn.0040fc20
test al, al
jne 0x40e995
cmp byte [esp + 0x17], al
je 0x40e995
cmp dword [ebx + 0x14], 8
jb 0x40e98c
mov eax, dword [ebx]
jmp 0x40e98e
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x24]
xor al, al
mov byte [esp + 0x17], al
xor ebx, ebx
mov eax, 0x4ec4ec4f
mov dword [esp + 0x20], ebx
mov esi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40f959
imul edi, ebx, 0x68
add edi, esi
cmp byte [edi + 0x64], 0
je 0x40efdf
mov esi, dword [esp + 0x438]
mov eax, 0x4ec4ec4f
mov ecx, esi
xor ebx, ebx
sub ecx, dword [esp + 0x434]
imul ecx
mov dword [esp + 0x18], ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
je 0x40ea49
mov esi, dword [esp + 0x434]
cmp dword [edi + 0x14], 8
jb 0x40ea10
mov ecx, dword [edi]
jmp 0x40ea12
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x40ea1c
mov eax, dword [esi]
jmp 0x40ea1e
mov eax, esi
push ecx
push eax
call fcn.0041788a
add esp, 8
test eax, eax
je 0x40ea40
mov eax, dword [esp + 0x18]
add esi, 0x68
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jb 0x40ea06
jmp 0x40ea42
mov ebx, esi
mov esi, dword [esp + 0x438]
test ebx, ebx
jne 0x40ecd4
xor eax, eax
mov dword [esp + 0x48c], ebx
mov dword [esp + 0x490], ebx
mov dword [esp + 0x490], 7
mov dword [esp + 0x48c], ebx
mov word [esp + 0x47c], ax
mov byte [esp + 0x580], 4
mov dword [esp + 0x4a4], eax
mov dword [esp + 0x4a8], eax
mov dword [esp + 0x4a8], 7
mov dword [esp + 0x4a4], eax
mov word [esp + 0x494], ax
mov byte [esp + 0x580], 5
mov dword [esp + 0x4bc], eax
mov dword [esp + 0x4c0], eax
mov dword [esp + 0x4c0], 7
mov dword [esp + 0x4bc], eax
mov word [esp + 0x4ac], ax
mov byte [esp + 0x580], 6
xorps xmm0, xmm0
movlpd qword [esp + 0x4c4], xmm0
movlpd qword [esp + 0x4cc], xmm0
movlpd qword [esp + 0x4d4], xmm0
mov dword [esp + 0x4dc], eax
mov byte [esp + 0x4e0], al
mov byte [esp + 0x580], 7
lea eax, [esp + 0x47c]
cmp eax, esi
jae 0x40eb9b
mov ecx, eax
mov eax, dword [esp + 0x434]
cmp eax, ecx
ja 0x40eb9b
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp esi, dword [esp + 0x43c]
jne 0x40eb5f
push ecx
lea ecx, [esp + 0x438]
call fcn.00410c50
mov esi, dword [esp + 0x438]
imul eax, ebx, 0x68
mov ebx, dword [esp + 0x434]
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
add eax, ebx
mov byte [esp + 0x580], 8
test esi, esi
je 0x40eb87
push eax
mov ecx, esi
call fcn.0040e5d0
mov byte [esp + 0x580], 7
add esi, 0x68
mov dword [esp + 0x438], esi
jmp 0x40ebf4
cmp esi, dword [esp + 0x43c]
jne 0x40ebb8
push ecx
lea ecx, [esp + 0x438]
call fcn.00410c50
mov esi, dword [esp + 0x438]
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov byte [esp + 0x580], 9
test esi, esi
je 0x40ebdb
lea eax, [esp + 0x47c]
mov ecx, esi
push eax
call fcn.0040e5d0
mov byte [esp + 0x580], 7
add esi, 0x68
mov dword [esp + 0x438], esi
mov ebx, dword [esp + 0x434]
mov ecx, esi
mov eax, 0x4ec4ec4f
sub ecx, ebx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x68
add eax, 0xffffff98
add ebx, eax
mov byte [esp + 0x580], 0xb
cmp dword [esp + 0x4c0], 8
jb 0x40ec32
push dword [esp + 0x4ac]
call fcn.00416b36
add esp, 4
xor eax, eax
mov dword [esp + 0x4c0], 7
mov dword [esp + 0x4bc], 0
mov word [esp + 0x4ac], ax
mov byte [esp + 0x580], 0xa
cmp dword [esp + 0x4a8], 8
jb 0x40ec73
push dword [esp + 0x494]
call fcn.00416b36
add esp, 4
xor eax, eax
mov dword [esp + 0x4a8], 7
mov dword [esp + 0x4a4], 0
mov word [esp + 0x494], ax
mov byte [esp + 0x580], 3
cmp dword [esp + 0x490], 8
jb 0x40ecb4
push dword [esp + 0x47c]
call fcn.00416b36
add esp, 4
xor eax, eax
mov dword [esp + 0x490], 7
mov dword [esp + 0x48c], 0
mov word [esp + 0x47c], ax
push ebx
lea ecx, [esp + 0x4e8]
call fcn.0040e5d0
mov byte [esp + 0x580], 0xd
cmp ebx, edi
je 0x40ecf9
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebx
call fcn.00403210
lea eax, [edi + 0x18]
lea esi, [ebx + 0x18]
cmp esi, eax
je 0x40ed0f
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00403210
lea ecx, [ebx + 0x30]
lea eax, [edi + 0x30]
mov dword [esp + 0x3c], ecx
cmp ecx, eax
je 0x40ed27
push 0xffffffffffffffff
push 0
push eax
call fcn.00403210
mov eax, dword [edi + 0x48]
lea ecx, [ebx + 0x48]
mov dword [ecx], eax
mov eax, dword [edi + 0x4c]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x50]
mov dword [ebx + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [ebx + 0x54], eax
mov eax, dword [edi + 0x58]
mov dword [esp + 0x28], ecx
lea ecx, [ebx + 0x50]
mov dword [ebx + 0x58], eax
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x18], ecx
lea ecx, [ebx + 0x58]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x60]
mov dword [esp + 0x40], ecx
lea ecx, [ebx + 0x60]
mov dword [ecx], eax
mov al, byte [edi + 0x64]
mov dword [esp + 0x38], ecx
lea ecx, [ebx + 0x64]
mov byte [ecx], al
cmp dword [esp + 0x4f8], 8
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x4e4]
cmovae ecx, dword [esp + 0x4e4]
cmp dword [ebx + 0x14], 8
mov dword [esp + 0x1c], eax
jb 0x40ed9d
mov ebx, dword [ebx]
mov edi, dword [esp + 0x4f4]
cmp eax, edi
mov edx, edi
cmovb edx, eax
test edx, edx
jne 0x40edc2
xor eax, eax
test eax, eax
jne 0x40edea
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
jae 0x40ede1
or eax, 0xffffffff
jmp 0x40ede8
mov ax, word [ebx]
cmp ax, word [ecx]
jne 0x40edd3
add ebx, 2
add ecx, 2
dec edx
jmp 0x40edad
movzx eax, word [ebx]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x40edb1
xor eax, eax
cmp ecx, edi
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
jne 0x40ef0c
cmp dword [esp + 0x510], 8
lea ecx, [esp + 0x4fc]
mov ebx, dword [esi + 0x10]
cmovae ecx, dword [esp + 0x4fc]
cmp dword [esi + 0x14], 8
jb 0x40ee1c
mov esi, dword [esi]
mov edi, dword [esp + 0x50c]
cmp ebx, edi
mov edx, edi
cmovb edx, ebx
test edx, edx
jne 0x40ee40
xor eax, eax
test eax, eax
jne 0x40ee68
cmp ebx, edi
jae 0x40ee5f
or eax, 0xffffffff
jmp 0x40ee66
mov ax, word [esi]
cmp ax, word [ecx]
jne 0x40ee51
add esi, 2
add ecx, 2
dec edx
jmp 0x40ee2c
movzx eax, word [esi]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x40ee30
xor eax, eax
cmp ebx, edi
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
jne 0x40ef0c
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x52c]
jne 0x40ef0c
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x530]
jne 0x40ef0c
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x534]
jne 0x40ef0c
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x538]
jne 0x40ef0c
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x53c]
jne 0x40ef0c
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x540]
jne 0x40ef0c
cmp dword [esp + 0x528], 8
lea eax, [esp + 0x514]
push dword [esp + 0x524]
mov ecx, dword [esp + 0x40]
cmovae eax, dword [esp + 0x518]
push eax
push dword [ecx + 0x10]
push ecx
call fcn.00403850
test eax, eax
jne 0x40ef0c
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
cmp eax, dword [esp + 0x544]
je 0x40ef18
mov eax, dword [esp + 0x30]
mov byte [esp + 0x17], 1
mov byte [eax], 1
mov byte [esp + 0x580], 0xf
cmp dword [esp + 0x528], 8
jb 0x40ef39
push dword [esp + 0x514]
call fcn.00416b36
add esp, 4
xor eax, eax
mov dword [esp + 0x528], 7
mov dword [esp + 0x524], 0
mov word [esp + 0x514], ax
mov byte [esp + 0x580], 0xe
cmp dword [esp + 0x510], 8
jb 0x40ef7a
push dword [esp + 0x4fc]
call fcn.00416b36
add esp, 4
xor eax, eax
mov dword [esp + 0x510], 7
mov dword [esp + 0x50c], 0
mov word [esp + 0x4fc], ax
mov byte [esp + 0x580], 3
cmp dword [esp + 0x4f8], 8
jb 0x40efbb
push dword [esp + 0x4e4]
call fcn.00416b36
add esp, 4
mov ebx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x4f8], 7
mov dword [esp + 0x4f4], 0
mov word [esp + 0x4e4], ax
mov eax, dword [esp + 0x24]
inc ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40e9c3
mov al, byte [esp + 0x17]
mov edi, dword [esp + 0x438]
test al, al
mov eax, dword [esp + 0x434]
je 0x40f967
cmp eax, edi
je 0x40f967
xorps xmm0, xmm0
mov dword [esp + 0x448], 0
xor ebx, ebx
movq qword [esp + 0x440], xmm0
mov dword [esp + 0x440], ebx
xor esi, esi
mov dword [esp + 0x444], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x448], ebx
mov byte [esp + 0x580], 0x11
mov ecx, edi
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [esp + 0x1c], ebx
je 0x40f0ab
cmp ebx, 0x418937
jbe 0x40f093
push str.vector_T__too_long
call fcn.0041631a
push ebx
lea ecx, [esp + 0x444]
call fcn.00410cf0
mov esi, dword [esp + 0x444]
mov dword [esp + 0x18], esi
test ebx, ebx
je 0x40f316
mov esi, dword [esp + 0x434]
add esi, 0x44
lea ecx, [ecx]
mov eax, dword [esi + 0x1c]
cmp eax, 1
je 0x40f0d6
cmp eax, 2
je 0x40f0d6
cmp eax, 3
jne 0x40f2fd
push 0x280
xorps xmm0, xmm0
mov dword [esp + 0x48], 0
lea eax, [esp + 0x4c]
movlpd qword [esp + 0x414], xmm0
push 0
push eax
movlpd qword [esp + 0x424], xmm0
movlpd qword [esp + 0x42c], xmm0
mov dword [esp + 0x434], 0
call fcn.00418720
add esp, 0xc
lea eax, [esp + 0x2c8]
push pe_nt_image_headers32
push 0
push eax
call fcn.00418720
add esp, 0xc
lea eax, [esp + 0x3c8]
push 0x48
push 0
push eax
call fcn.00418720
add esp, 0xc
lea eax, [esp + 0x44]
lea ecx, [esp + 0x440]
push eax
call fcn.004108c0
mov edi, dword [esp + 0x444]
mov eax, 0x10624dd3
mov ebx, dword [esp + 0x440]
mov ecx, edi
sub ecx, ebx
mov dword [esp + 0x18], edi
imul ecx
add ebx, 0xfffffc18
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
add eax, ebx
push 0x280
push 0
mov dword [esp + 0x28], eax
lea ebx, [eax + 4]
mov dword [eax], 0x23ab45db
push ebx
call fcn.00418720
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, 0x284
mov dword [esp + 0x24], eax
push pe_nt_image_headers32
push 0
push eax
call fcn.00418720
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, 0x384
mov dword [esp + 0x28], eax
push 0x48
push 0
push eax
call fcn.00418720
add esp, 0xc
cmp dword [esi - 0x34], 0x13f
ja 0x40f20a
cmp dword [esi - 0x30], 8
jb 0x40f1f4
mov ecx, dword [esi - 0x44]
jmp 0x40f1f7
lea ecx, [esi - 0x44]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx], ax
lea ebx, [ebx + 2]
test ax, ax
jne 0x40f1f7
jmp 0x40f227
cmp dword [esi - 0x30], 8
jb 0x40f215
mov eax, dword [esi - 0x44]
jmp 0x40f218
lea eax, [esi - 0x44]
push 0x13e
push eax
push ebx
call fcn.0041784a
add esp, 0xc
cmp dword [esi - 0x1c], 0x7f
ja 0x40f253
cmp dword [esi - 0x18], 8
jb 0x40f238
mov ecx, dword [esi - 0x2c]
jmp 0x40f23b
lea ecx, [esi - 0x2c]
mov edx, dword [esp + 0x24]
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x40f240
jmp 0x40f270
cmp dword [esi - 0x18], 8
jb 0x40f25e
mov eax, dword [esi - 0x2c]
jmp 0x40f261
lea eax, [esi - 0x2c]
push 0x7e
push eax
push dword [esp + 0x2c]
call fcn.0041784a
add esp, 0xc
cmp dword [esi - 4], 0x23
ja 0x40f29a
cmp dword [esi], 8
jb 0x40f280
mov ecx, dword [esi - 0x14]
jmp 0x40f283
lea ecx, [esi - 0x14]
mov edx, dword [esp + 0x28]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x40f287
jmp 0x40f2b6
cmp dword [esi], 8
jb 0x40f2a4
mov eax, dword [esi - 0x14]
jmp 0x40f2a7
lea eax, [esi - 0x14]
push 0x23
push eax
push dword [esp + 0x30]
call fcn.0041784a
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x1c]
mov dword [ecx + 0x3cc], eax
mov eax, dword [esi + 8]
mov dword [ecx + 0x3d0], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x3d4], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x3d8], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x3dc], eax
mov eax, dword [esi + 0x18]
mov dword [ecx + 0x3e0], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x3e4], eax
add esi, 0x68
dec ebx
mov dword [esp + 0x1c], ebx
jne 0x40f0c0
mov edi, dword [esp + 0x438]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x440]
cmp ebx, esi
jne 0x40f384
mov byte [esp + 0x580], 3
test ebx, ebx
je 0x40f357
push ebx
call fcn.00416b36
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
mov ebx, dword [esp + 0x434]
test ebx, ebx
je 0x40f9bf
mov esi, ebx
mov ecx, esi
call fcn.0040e510
add esi, 0x68
cmp esi, edi
jne 0x40f370
push ebx
jmp 0x40f996
xorps xmm0, xmm0
mov dword [esp + 0x454], 0
movq qword [esp + 0x44c], xmm0
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
mov byte [esp + 0x580], 0x12
lea ecx, [esp + 0x550]
call fcn.00413a40
sub esi, ebx
lea ecx, [esp + 0x44c]
mov eax, 0x10624dd3
imul esi
push ecx
sar edx, 6
lea ecx, [esp + 0x554]
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
push eax
push ebx
call fcn.00413ae0
test al, al
jne 0x40f4a7
mov byte [esp + 0x580], 0x11
mov eax, dword [esp + 0x44c]
test eax, eax
je 0x40f444
push eax
call fcn.00416b36
add esp, 4
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
mov byte [esp + 0x580], 3
test ebx, ebx
je 0x40f47a
push ebx
call fcn.00416b36
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
mov ebx, dword [esp + 0x434]
test ebx, ebx
je 0x40f9bf
mov esi, ebx
mov ecx, esi
call fcn.0040e510
add esi, 0x68
cmp esi, edi
jne 0x40f493
push ebx
jmp 0x40f996
mov esi, dword [esp + 0x44c]
mov ebx, dword [esp + 0x450]
cmp esi, ebx
jne 0x40f564
mov byte [esp + 0x580], 0x11
test esi, esi
je 0x40f4f3
push esi
call fcn.00416b36
add esp, 4
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
mov byte [esp + 0x580], 3
mov ebx, dword [esp + 0x440]
test ebx, ebx
je 0x40f530
push ebx
call fcn.00416b36
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
mov ebx, dword [esp + 0x434]
test ebx, ebx
je 0x40f9bf
mov esi, ebx
lea esp, [esp]
mov ecx, esi
call fcn.0040e510
add esi, 0x68
cmp esi, edi
jne 0x40f550
push ebx
jmp 0x40f996
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x14], 8
jb 0x40f572
mov ecx, dword [eax]
jmp 0x40f574
mov ecx, eax
push ecx
push 0x80
push 4
push ecx
push 0
mov edx, 0x40000000
call fcn.004087b0
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x40f59b
test edi, edi
jne 0x40f644
push 2
push ecx
mov ecx, dword [esp + 0x3c]
push 0x42dc9c
call fcn.004052e0
cmp eax, 0xffffffff
je 0x40f644
mov edi, dword [esp + 0x34]
mov ecx, edi
push eax
push 0
lea eax, [esp + 0x558]
push eax
call fcn.00403e90
mov byte [esp + 0x580], 0x13
lea ecx, [esp + 0x550]
call fcn.0040c9b0
cmp dword [edi + 0x14], 8
jb 0x40f5e7
mov edi, dword [edi]
push ecx
push 0x80
push 4
push ecx
push 0
mov edx, 0x40000000
mov ecx, edi
call fcn.004087b0
add esp, 0x14
mov edi, eax
mov byte [esp + 0x580], 0x12
cmp dword [esp + 0x564], 8
jb 0x40f624
push dword [esp + 0x550]
call fcn.00416b36
add esp, 4
xor eax, eax
mov dword [esp + 0x564], 7
mov dword [esp + 0x560], 0
mov word [esp + 0x550], ax
cmp edi, 0xffffffff
je 0x40f8d0
test edi, edi
je 0x40f8d0
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x47c]
mov dword [esp + 0x47c], 0
push eax
sub ebx, esi
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [esp + 0x478], ebx
jne 0x40f839
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x434]
push eax
call fcn.00410840
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
sub ecx, ebx
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40f708
xor edi, edi
xor esi, esi
mov eax, dword [esp + 0x2c]
lea edi, [edi + 0x68]
mov byte [edi + ebx - 4], 0
inc esi
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
sub ecx, ebx
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x40f6d2
mov esi, dword [esp + 0x44c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x580], 0x11
test esi, esi
je 0x40f73e
push esi
call fcn.00416b36
add esp, 4
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
mov byte [esp + 0x580], 3
mov ebx, dword [esp + 0x440]
test ebx, ebx
je 0x40f77b
push ebx
call fcn.00416b36
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
lea ecx, [esp + 0x434]
call fcn.004106f0
mov byte [esp + 0x580], 1
cmp byte [esp + 0x16], 0
je 0x40f7b8
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x40f7b0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x430], 0
mov dword [esp + 0x470], 0
mov byte [esp + 0x580], 0
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x40f7e4
push eax
call edi
mov dword [esp + 0x42c], 0
mov word [esp + 0x430], 0
mov dword [esp + 0x580], 0xffffffff
cmp dword [esp + 0x46c], 8
jb 0x40f812
push dword [esp + 0x458]
call fcn.00416b36
add esp, 4
xor eax, eax
mov dword [esp + 0x46c], 7
mov word [esp + 0x458], ax
mov al, 1
mov dword [esp + 0x468], 0
jmp 0x40fa64
mov byte [esp + 0x580], 0x11
lea ecx, [esp + 0x44c]
call fcn.0040b040
mov byte [esp + 0x580], 3
lea ecx, [esp + 0x440]
call fcn.0040b040
mov byte [esp + 0x580], 2
lea ecx, [esp + 0x434]
call fcn.004106f0
mov byte [esp + 0x580], 1
lea ecx, [esp + 0x470]
call fcn.0040daf0
mov byte [esp + 0x580], 0
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x40f8aa
push eax
call edi
mov dword [esp + 0x42c], 0
mov word [esp + 0x430], 0
mov dword [esp + 0x580], 0xffffffff
lea ecx, [esp + 0x458]
call fcn.00402e40
jmp 0x40fa62
mov byte [esp + 0x580], 0x11
test esi, esi
je 0x40f906
push esi
call fcn.00416b36
add esp, 4
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
mov byte [esp + 0x580], 3
mov ebx, dword [esp + 0x440]
test ebx, ebx
je 0x40f943
push ebx
call fcn.00416b36
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
lea ecx, [esp + 0x434]
call fcn.004106f0
jmp 0x40f9bf
mov edi, dword [esp + 0x438]
mov eax, dword [esp + 0x434]
mov byte [esp + 0x580], 2
test eax, eax
je 0x40f9bf
mov esi, eax
cmp eax, edi
je 0x40f995
lea esp, [esp]
mov ecx, esi
call fcn.0040e510
add esi, 0x68
cmp esi, edi
jne 0x40f980
mov eax, dword [esp + 0x434]
push eax
call fcn.00416b36
add esp, 4
mov dword [esp + 0x43c], 0
mov dword [esp + 0x438], 0
mov dword [esp + 0x434], 0
mov byte [esp + 0x580], 1
cmp byte [esp + 0x16], 0
je 0x40f9e8
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x40f9e0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x430], 0
mov dword [esp + 0x470], 0
mov byte [esp + 0x580], 0
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x40fa18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x42c], 0
mov word [esp + 0x430], 0
mov dword [esp + 0x580], 0xffffffff
cmp dword [esp + 0x46c], 8
jb 0x40fa46
push dword [esp + 0x458]
call fcn.00416b36
add esp, 4
xor eax, eax
mov dword [esp + 0x46c], 7
mov word [esp + 0x458], ax
mov dword [esp + 0x468], eax
xor al, al
mov ecx, dword [esp + 0x578]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x560]
xor ecx, esp
call fcn.0041637f
mov esp, ebp
pop ebp
ret 0xc