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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461a56
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x47a008]
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 eax, dword [ebp + 0x10]
mov ecx, 0x47d7b8
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x170], eax
call fcn.0045e765
cmp dword [esi + 0x10], 0
je 0x40e5bd
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
cmp edi, edx
je 0x40e5bd
sub edx, edi
mov eax, 0x4ec4ec4f
imul edx
xor ecx, ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x40e5bd
lea eax, [edi + 0x64]
nop dword [eax]
cmp byte [eax], 0
jne 0x40e5dd
inc ecx
add eax, 0x68
cmp ecx, esi
jb 0x40e5b0
xor al, al
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.0042226a
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 0x168]
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.0040fa30
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov word [ebp - 0x2c], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041b400
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
mov byte [ebp - 0x44], 0
test eax, eax
jne 0x40e63e
xor al, al
jmp 0x40e65c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40e656
cmp eax, 0x80
je 0x40e656
xor al, al
jmp 0x40e65c
mov byte [ebp - 0x2c], 1
mov al, 1
mov byte [ebp - 0x152], al
mov byte [ebp - 0x44], al
mov byte [ebp - 4], 4
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x151]
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x151], 0
push eax
push esi
call fcn.0040f460
test al, al
jne 0x40e6c6
cmp byte [ebp - 0x151], al
je 0x40e6c6
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40e6bf
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx + 4]
xor al, al
mov edi, dword [ebx]
sub ecx, edi
mov byte [ebp - 0x151], al
mov eax, 0x4ec4ec4f
imul ecx
mov dword [ebp - 0x164], 0
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40f074
xor eax, eax
mov dword [ebp - 0x158], eax
nop
cmp byte [eax + edi + 0x64], 0
lea esi, [eax + edi]
je 0x40ea1e
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x15c], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
sub ecx, edi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40e79c
xor eax, eax
mov dword [ebp - 0x160], eax
nop dword [eax + eax]
add edi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40e74c
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40e756
mov eax, dword [edi]
push ecx
push eax
call fcn.0042d651
add esp, 8
test eax, eax
je 0x40e79a
mov ecx, dword [ebp - 0x18]
mov eax, 0x4ec4ec4f
mov edi, dword [ebp - 0x1c]
sub ecx, edi
inc dword [ebp - 0x15c]
add dword [ebp - 0x160], 0x68
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x160]
jb 0x40e740
jmp 0x40e79c
mov ebx, edi
test ebx, ebx
jne 0x40e809
lea ecx, [ebp - 0x150]
call fcn.0040d490
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x150]
mov eax, dword [ebp - 0x18]
push ecx
cmp dword [ebp - 0x14], eax
je 0x40e7d0
mov ecx, eax
call fcn.0040e380
mov edx, dword [ebp - 0x18]
add edx, 0x68
mov dword [ebp - 0x18], edx
jmp 0x40e7dc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00412fa0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x4ec4ec4f
sub edx, ecx
imul edx
lea ebx, [ecx - 0x68]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x68
add ebx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x150]
call fcn.0040e210
push ebx
lea ecx, [ebp - 0xe8]
call fcn.004076e0
mov byte [ebp - 4], 7
lea edi, [ebx + 0x18]
push edi
lea ecx, [ebp - 0xd0]
call fcn.004076e0
mov byte [ebp - 4], 8
lea eax, [ebx + 0x30]
push eax
lea ecx, [ebp - 0xb8]
call fcn.004076e0
mov byte [ebp - 4], 9
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x94], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x90], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x88], eax
mov al, byte [ebx + 0x64]
mov byte [ebp - 0x84], al
mov byte [ebp - 4], 0xa
cmp ebx, esi
je 0x40e8a4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40e899
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00404380
lea eax, [esi + 0x18]
cmp edi, eax
je 0x40e8c0
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40e8b5
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00404380
lea eax, [esi + 0x30]
lea edx, [ebx + 0x30]
cmp edx, eax
je 0x40e8df
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40e8d4
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.00404380
mov eax, dword [esi + 0x48]
lea ecx, [ebp - 0xe8]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [ebx + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [ebx + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [ebx + 0x60], eax
mov al, byte [esi + 0x64]
mov esi, ebx
mov byte [ebx + 0x64], al
cmp dword [ebp - 0xd4], 8
cmovae ecx, dword [ebp - 0xe8]
cmp dword [ebx + 0x14], 8
jb 0x40e92d
mov esi, dword [ebx]
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebp - 0xd8]
jne 0x40e9f6
test edx, edx
je 0x40e957
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x40e9f6
add ecx, 2
sub edx, 1
jne 0x40e942
cmp dword [ebp - 0xbc], 8
lea ecx, [ebp - 0xd0]
mov esi, edi
cmovae ecx, dword [ebp - 0xd0]
cmp dword [edi + 0x14], 8
jb 0x40e975
mov esi, dword [edi]
mov edx, dword [edi + 0x10]
cmp edx, dword [ebp - 0xc0]
jne 0x40e9f6
test edx, edx
je 0x40e997
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x40e9f6
add ecx, 2
sub edx, 1
jne 0x40e986
mov eax, dword [ebx + 0x48]
cmp eax, dword [ebp - 0xa0]
jne 0x40e9f6
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebp - 0x9c]
jne 0x40e9f6
mov eax, dword [ebx + 0x50]
cmp eax, dword [ebp - 0x98]
jne 0x40e9f6
mov eax, dword [ebx + 0x54]
cmp eax, dword [ebp - 0x94]
jne 0x40e9f6
mov eax, dword [ebx + 0x58]
cmp eax, dword [ebp - 0x90]
jne 0x40e9f6
mov eax, dword [ebx + 0x5c]
cmp eax, dword [ebp - 0x8c]
jne 0x40e9f6
lea edx, [ebp - 0xb8]
lea ecx, [ebx + 0x30]
call fcn.00412940
test al, al
jne 0x40e9f6
mov eax, dword [ebx + 0x60]
cmp eax, dword [ebp - 0x88]
je 0x40ea01
mov byte [ebp - 0x151], 1
mov byte [ebx + 0x64], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xe8]
call fcn.0040e210
mov ebx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x158]
mov edi, dword [ebx]
mov ecx, dword [ebx + 4]
add eax, 0x68
mov esi, dword [ebp - 0x164]
sub ecx, edi
mov dword [ebp - 0x158], eax
inc esi
mov eax, 0x4ec4ec4f
mov dword [ebp - 0x164], esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
mov eax, dword [ebp - 0x158]
jb 0x40e700
cmp byte [ebp - 0x151], 0
je 0x40f074
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
je 0x40f074
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0x11
mov eax, 0x4ec4ec4f
mov edi, dword [ebp - 0x18]
mov ecx, edi
mov esi, dword [ebp - 0x1c]
sub ecx, esi
imul ecx
mov ecx, dword [ebp - 0x20]
mov eax, 0x10624dd3
sub ecx, dword [ebp - 0x28]
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jbe 0x40eaea
cmp ebx, 0x418937
ja 0x40f19a
push ebx
lea ecx, [ebp - 0x28]
call fcn.00411020
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov ecx, edi
mov dword [ebp - 0x15c], 0
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40ed9a
xor ecx, ecx
mov dword [ebp - 0x158], ecx
nop word [eax + eax]
mov eax, dword [ecx + esi + 0x60]
lea ebx, [ecx + esi]
cmp eax, 1
je 0x40eb3a
cmp eax, 2
je 0x40eb3a
cmp eax, 3
jne 0x40ed61
push 0x280
xorps xmm0, xmm0
mov dword [ebp - 0x558], 0
lea eax, [ebp - 0x554]
movlpd qword [ebp - 0x18c], xmm0
push 0
push eax
movlpd qword [ebp - 0x184], xmm0
movlpd qword [ebp - 0x17c], xmm0
mov dword [ebp - 0x174], 0
call fcn.00424b60
push 0x100
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.00424b60
push 0x48
lea eax, [ebp - 0x1d4]
push 0
push eax
call fcn.00424b60
mov eax, dword [ebp - 0x24]
add esp, 0x24
cmp dword [ebp - 0x20], eax
je 0x40ebc7
mov ecx, 0xfa
lea esi, [ebp - 0x558]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x24]
add edx, 0x3e8
mov dword [ebp - 0x24], edx
jmp 0x40ebda
lea ecx, [ebp - 0x558]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00412c70
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov eax, 0x10624dd3
sub edx, ecx
imul edx
lea edi, [ecx - 0x3e8]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
add edi, eax
push 0x280
push 0
mov dword [ebp - 0x160], edi
lea esi, [edi + 4]
mov dword [edi], 0x23ab45db
push esi
call fcn.00424b60
push 0x100
add edi, 0x284
push 0
push edi
call fcn.00424b60
mov eax, dword [ebp - 0x160]
push 0x48
add eax, 0x384
push 0
push eax
mov dword [ebp - 0x164], eax
call fcn.00424b60
add esp, 0x24
cmp dword [ebx + 0x10], 0x13f
ja 0x40ec72
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x40ec5e
mov ecx, dword [ebx]
sub esi, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x40ec60
jmp 0x40ec8b
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x40ec7c
mov eax, dword [ebx]
push 0x13e
push eax
push esi
call fcn.0042d7c6
add esp, 0xc
cmp dword [ebx + 0x28], 0x7f
ja 0x40ecb2
cmp dword [ebx + 0x2c], 8
lea ecx, [ebx + 0x18]
jb 0x40ec9c
mov ecx, dword [ecx]
sub edi, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x40eca0
jmp 0x40ecc9
cmp dword [ebx + 0x2c], 8
lea eax, [ebx + 0x18]
jb 0x40ecbd
mov eax, dword [eax]
push 0x7e
push eax
push edi
call fcn.0042d7c6
add esp, 0xc
cmp dword [ebx + 0x40], 0x23
ja 0x40ecf4
cmp dword [ebx + 0x44], 8
lea ecx, [ebx + 0x30]
jb 0x40ecda
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x164]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40ece2
jmp 0x40ed10
cmp dword [ebx + 0x44], 8
lea eax, [ebx + 0x30]
jb 0x40ecff
mov eax, dword [eax]
push 0x23
push eax
push dword [ebp - 0x164]
call fcn.0042d7c6
add esp, 0xc
mov ecx, dword [ebp - 0x160]
mov eax, dword [ebx + 0x48]
mov dword [ecx + 0x3cc], eax
mov eax, dword [ebx + 0x4c]
mov dword [ecx + 0x3d0], eax
mov eax, dword [ebx + 0x50]
mov dword [ecx + 0x3d4], eax
mov eax, dword [ebx + 0x54]
mov dword [ecx + 0x3d8], eax
mov eax, dword [ebx + 0x58]
mov dword [ecx + 0x3dc], eax
mov eax, dword [ebx + 0x5c]
mov dword [ecx + 0x3e0], eax
mov eax, dword [ebx + 0x60]
mov dword [ecx + 0x3e4], eax
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x158]
mov ebx, dword [ebp - 0x15c]
add ecx, 0x68
mov dword [ebp - 0x158], ecx
mov eax, 0x4ec4ec4f
mov ecx, edi
inc ebx
sub ecx, esi
mov dword [ebp - 0x15c], ebx
imul ecx
mov ecx, dword [ebp - 0x158]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40eb20
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jne 0x40eda9
xor bl, bl
jmp 0x40f00e
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x80]
call fcn.0041f590
mov byte [ebp - 4], 0x19
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x3c]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
push ecx
lea ecx, [ebp - 0x80]
push eax
push esi
call fcn.0041f660
mov edi, dword [ebp - 0x3c]
test al, al
je 0x40efc2
mov ebx, dword [ebp - 0x38]
cmp edi, ebx
je 0x40efc2
mov eax, dword [ebp - 0x168]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40ee30
mov ecx, dword [eax]
push ecx
push 0x80
push 4
push ecx
push 0
mov edx, 0x40000000
call fcn.0040b650
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x40ee57
test esi, esi
jne 0x40ef0f
push ecx
mov ecx, dword [ebp - 0x168]
push 0x46dc8c
call fcn.0040cc00
cmp eax, 0xffffffff
je 0x40ef0f
mov esi, dword [ebp - 0x168]
mov ecx, esi
push eax
push 0
lea eax, [ebp - 0x78]
push eax
call fcn.0040cb30
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x78]
call fcn.00415d60
cmp dword [esi + 0x14], 8
jb 0x40ee99
mov esi, dword [esi]
push ecx
push 0x80
push 4
push ecx
push 0
mov edx, 0x40000000
mov ecx, esi
call fcn.0040b650
add esp, 0x14
mov esi, eax
mov byte [ebp - 4], 0x27
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x40eef3
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eee9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f19f
push edx
push ecx
call fcn.004222ab
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
mov byte [ebp - 4], 0x19
mov byte [ebp - 4], 0x19
cmp esi, 0xffffffff
je 0x40efc2
test esi, esi
je 0x40efc2
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
sub ebx, edi
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x40], ebx
jne 0x40efc2
mov esi, dword [ebp - 0x170]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00410590
mov ecx, dword [esi + 4]
mov eax, 0x4ec4ec4f
mov ebx, dword [esi]
sub ecx, ebx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40efbe
xor esi, esi
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebp - 0x170]
lea esi, [esi + 0x68]
mov byte [ebx + esi - 4], 0
inc edi
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 edi, eax
jb 0x40ef90
mov edi, dword [ebp - 0x3c]
mov bl, 1
jmp 0x40efc4
xor bl, bl
mov byte [ebp - 4], 0x11
test edi, edi
je 0x40f00e
mov ecx, dword [ebp - 0x34]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x40efef
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f1a4
push ecx
push edi
call fcn.004222ab
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x40f076
mov ecx, dword [ebp - 0x20]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x3e8
mov eax, esi
cmp ecx, 0x1000
jb 0x40f053
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f1a9
push ecx
push esi
call fcn.004222ab
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
jmp 0x40f076
xor bl, bl
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x40f0ef
mov edi, dword [ebp - 0x18]
cmp esi, edi
je 0x40f099
mov ecx, esi
call fcn.0040e210
add esi, 0x68
cmp esi, edi
jne 0x40f088
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov eax, 0x4ec4ec4f
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x68
mov eax, esi
cmp ecx, 0x1000
jb 0x40f0d0
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f1ae
push ecx
push esi
call fcn.004222ab
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0x37
cmp byte [ebp - 0x152], 0
je 0x40f10e
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40f10a
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0x38
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40f12e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x2c], 0
mov dword [ebp - 4], 0x39
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x40f171
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f167
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f1b3
push edx
push ecx
call fcn.004222ab
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, bl
jmp 0x40e5bf
call fcn.00410dc0
call fcn.0042d2d8
call fcn.0042d2d8
call fcn.0042d2d8
call fcn.0042d2d8
call fcn.0042d2d8
int3