Function at 0x409c07
Capabilities:
Check for software breakpoints
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [edi + 0x88]
cmp dword [eax + 0x20], 0xcc
jne 0x409c2b
xor eax, eax
jmp 0x409e5a
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push ecx
push eax
push ecx
mov ecx, dword [edi + 0x84]
push 5
call fcn.0040dc21
mov ecx, dword [edi + 0x88]
cmp dword [ecx + 0x30], 0
jne 0x409c64
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x30], eax
mov eax, dword [edi + 0x88]
and dword [eax + 0x34], 0
mov ecx, dword [edi + 0x88]
cmp dword [ecx + 0x20], 0xc8
je 0x409c7a
cmp dword [ecx + 0x20], 0xce
mov byte [ebp - 5], 0
jne 0x409c7e
mov byte [ebp - 5], 1
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
mov esi, dword [edi + 0x84]
mov ecx, esi
and dword [ebp - 0xc], 0
push 2
call fcn.0040dcad
mov ebx, eax
test ebx, ebx
js 0x409cef
and dword [esi + 0x24], 0
lea ecx, [esi + 0x38]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00412bba
jmp 0x409cc3
mov ecx, dword [esi]
push 0
push dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ebx, eax
lea ecx, [ebp - 0x24]
call fcn.00412bd5
test al, al
jne 0x409cb5
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
call dword [eax + 8]
test ebx, ebx
js 0x409cef
push ecx
mov ecx, esi
call fcn.0040dcea
test eax, eax
js 0x409cef
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0xc], ecx
jmp 0x409cf2
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x38]
push eax
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040a357
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov ebx, dword [edi + 0x84]
sub eax, ecx
mov dword [ebp - 0x18], ecx
mov ecx, ebx
push 3
mov dword [ebp - 0x14], eax
call fcn.0040dcad
mov esi, eax
test esi, esi
jns 0x409d2a
mov eax, dword [ebp - 0xc]
jmp 0x409d8c
and dword [ebx + 0x28], 0
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00412bba
lea ecx, [ebp - 0x2c]
call fcn.00412bd5
test al, al
je 0x409d6a
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebx]
push 0
push edi
push dword [ebp - 0x18]
mov eax, dword [ecx]
push dword [ebx + 8]
call dword [eax + 0x48]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00412bd5
test al, al
jne 0x409d49
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
test esi, esi
js 0x409d25
push ecx
mov ecx, ebx
call fcn.0040dcea
mov esi, eax
test esi, esi
js 0x409d25
mov eax, dword [ebx + 0x28]
xor esi, esi
mov dword [ebp - 0xc], eax
test esi, esi
js 0x409e50
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.0040a357
mov ebx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
cmp ebx, edx
je 0x409dea
mov eax, dword [edi + 0x48]
xor ecx, ecx
cmp dword [eax - 0xc], ecx
je 0x409dd4
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push eax
sub edx, ebx
push edx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x409dea
call fcn.00413541
mov esi, eax
jmp 0x409e50
push dword [ebp + 8]
mov ecx, dword [edi + 0x88]
push edx
push ebx
push dword [ecx + 0x18]
add ecx, 0x14
call fcn.0040a456
mov eax, dword [edi + 0x88]
mov ecx, dword [ebp - 0xc]
add dword [eax + 0x34], ecx
mov ecx, dword [edi + 0x80]
test ecx, ecx
je 0x409e24
mov edx, dword [edi + 0x88]
cmp dword [edx + 0x30], 0
je 0x409e24
cmp byte [ebp - 5], 0
je 0x409e24
mov eax, dword [ecx]
push 0
push 0x80000
push dword [edx + 0x30]
push dword [edx + 0x34]
call dword [eax + 8]
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x34]
jne 0x409c8a
mov eax, dword [edi + 0x88]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x409e49
cmp ecx, dword [eax + 0x34]
je 0x409e49
mov esi, 0x80072efe
jmp 0x409e50
mov byte [edi + 0x90], 1
lea ecx, [ebp - 0x38]
call fcn.0040528f
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4