Function at 0x18046a59
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 - 0x18], edi
mov eax, dword [edi + 0x88]
cmp dword [eax + 0x20], 0xcc
jne 0x18046a7d
xor eax, eax
jmp 0x18046c9f
push ecx
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push ecx
mov ecx, dword [edi + 0x84]
push 5
mov dword [ebp - 0x10], ebx
call fcn.1804b3a4
mov ecx, dword [edi + 0x88]
cmp dword [ecx + 0x30], ebx
jne 0x18046ab5
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x30], eax
mov eax, dword [edi + 0x88]
mov dword [eax + 0x34], ebx
mov ecx, dword [edi + 0x88]
cmp dword [ecx + 0x20], 0xc8
je 0x18046aca
cmp dword [ecx + 0x20], 0xce
mov byte [ebp - 5], bl
jne 0x18046ace
mov byte [ebp - 5], 1
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov esi, dword [edi + 0x84]
mov ecx, esi
push 2
mov dword [ebp - 0xc], ebx
call fcn.1804b430
mov ebx, eax
test ebx, ebx
js 0x18046b3b
and dword [esi + 0x24], 0
lea ecx, [esi + 0x38]
push ecx
lea ecx, [ebp - 0x20]
call fcn.1800eb8d
jmp 0x18046b0f
mov ecx, dword [esi]
push 0
push dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ebx, eax
lea ecx, [ebp - 0x20]
call fcn.1800eba8
test al, al
jne 0x18046b01
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 8]
test ebx, ebx
js 0x18046b3b
push ecx
mov ecx, esi
call fcn.1804b46d
test eax, eax
js 0x18046b3b
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0xc], ecx
jmp 0x18046b3e
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x34]
call fcn.18009e11
mov eax, dword [ebp - 0x30]
mov ebx, dword [edi + 0x84]
mov ecx, ebx
sub eax, dword [ebp - 0x34]
push 3
mov dword [ebp - 0x14], eax
call fcn.1804b430
mov esi, eax
test esi, esi
jns 0x18046b6d
mov eax, dword [ebp - 0xc]
jmp 0x18046bcf
and dword [ebx + 0x28], 0
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.1800eb8d
lea ecx, [ebp - 0x28]
call fcn.1800eba8
test al, al
je 0x18046bad
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebx]
push 0
push edi
push dword [ebp - 0x34]
mov eax, dword [ecx]
push dword [ebx + 8]
call dword [eax + 0x48]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.1800eba8
test al, al
jne 0x18046b8c
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
call dword [eax + 8]
test esi, esi
js 0x18046b68
push ecx
mov ecx, ebx
call fcn.1804b46d
mov esi, eax
test esi, esi
js 0x18046b68
mov eax, dword [ebx + 0x28]
xor esi, esi
mov dword [ebp - 0xc], eax
test esi, esi
js 0x18046c95
push eax
lea ecx, [ebp - 0x34]
call fcn.18009e11
mov ebx, dword [ebp - 0x34]
cmp ebx, dword [ebp - 0x30]
je 0x18046c2f
mov eax, dword [edi + 0x48]
xor ecx, ecx
cmp dword [eax - 0xc], ecx
je 0x18046c17
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
mov eax, dword [ebp - 0x30]
sub eax, ebx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18046c2f
call fcn.18013db1
mov esi, eax
jmp 0x18046c95
push dword [ebp + 8]
mov ecx, dword [edi + 0x88]
push dword [ebp - 0x30]
push ebx
push dword [ecx + 0x18]
add ecx, 0x14
call fcn.18047176
mov eax, dword [edi + 0x88]
mov ecx, dword [ebp - 0xc]
add dword [eax + 0x34], ecx
mov ecx, dword [edi + 0x80]
test ecx, ecx
je 0x18046c69
mov edx, dword [edi + 0x88]
cmp dword [edx + 0x30], 0
je 0x18046c69
cmp byte [ebp - 5], 0
je 0x18046c69
mov eax, dword [ecx]
push 0
push 0x80000
push dword [edx + 0x30]
push dword [edx + 0x34]
call dword [eax + 8]
cmp ebx, dword [ebp - 0x30]
je 0x18046c75
xor ebx, ebx
jmp 0x18046ad7
mov eax, dword [edi + 0x88]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x18046c8e
cmp ecx, dword [eax + 0x34]
je 0x18046c8e
mov esi, 0x80072efe
jmp 0x18046c95
mov byte [edi + 0x90], 1
lea ecx, [ebp - 0x34]
call fcn.1800b43d
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4