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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x88]
cmp dword [eax + 0x20], 0xcc
jne 0x18059ae7
xor eax, eax
jmp 0x18059cb1
push ecx
mov ecx, dword [esi + 0x84]
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push ebx
push 5
mov dword [ebp - 0x10], ebx
call fcn.1805fbf6
mov ecx, dword [esi + 0x88]
cmp dword [ecx + 0x30], ebx
jne 0x18059b1f
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x30], eax
mov eax, dword [esi + 0x88]
mov dword [eax + 0x34], ebx
mov ecx, dword [esi + 0x88]
cmp dword [ecx + 0x20], 0xc8
je 0x18059b34
cmp dword [ecx + 0x20], 0xce
mov byte [ebp - 5], bl
jne 0x18059b38
mov byte [ebp - 5], 1
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov edi, dword [esi + 0x84]
mov ecx, edi
push 2
call fcn.1805fc83
mov dword [ebp - 0xc], eax
test eax, eax
js 0x18059ba0
lea ecx, [edi + 0x38]
mov dword [edi + 0x24], ebx
push ecx
lea ecx, [ebp - 0x24]
call fcn.18012e1c
jmp 0x18059b76
mov ecx, dword [edi]
push ebx
push dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x24]
call fcn.18012e37
test al, al
jne 0x18059b68
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [ebp - 0xc], ebx
jl 0x18059ba0
push ecx
mov ecx, edi
call fcn.1805fcc0
test eax, eax
js 0x18059ba0
mov eax, dword [edi + 0x24]
jmp 0x18059ba2
mov eax, ebx
inc eax
lea ecx, [ebp - 0x38]
push eax
call fcn.1800d9d9
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
sub ecx, edi
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x18], ecx
mov ecx, eax
push 3
mov dword [ebp - 0xc], eax
call fcn.1805fc83
mov dword [ebp - 0x14], eax
test eax, eax
js 0x18059c79
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x2c]
mov dword [eax + 0x28], ebx
add eax, 0x38
push eax
call fcn.18012e1c
lea ecx, [ebp - 0x2c]
call fcn.18012e37
test al, al
je 0x18059c16
mov esi, dword [ebp - 0xc]
mov ecx, dword [esi]
push ebx
push dword [ebp - 0x18]
mov eax, dword [ecx]
push edi
push dword [esi + 8]
call dword [eax + 0x48]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
call fcn.18012e37
test al, al
jne 0x18059bf5
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
js 0x18059c79
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.1805fcc0
test eax, eax
js 0x18059c79
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x38]
mov eax, dword [eax + 0x28]
push eax
mov dword [ebp - 0x14], eax
call fcn.1800d9d9
mov edi, dword [ebp - 0x38]
cmp edi, dword [ebp - 0x34]
je 0x18059cd0
mov eax, dword [esi + 0x48]
cmp dword [eax - 0xc], ebx
je 0x18059cb8
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
mov eax, dword [ebp - 0x34]
sub eax, edi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18059cd0
call fcn.18017850
mov ebx, eax
test edi, edi
je 0x18059caf
mov eax, dword [ebp - 0x30]
sub eax, edi
mov dword [ebp - 0x14], edi
mov dword [ebp + 8], eax
cmp eax, 0x1000
jb 0x18059ca6
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.18007386
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
pop ecx
pop ecx
push eax
push edi
call fcn.1814d45b
pop ecx
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp + 8]
mov ecx, dword [esi + 0x88]
push dword [ebp - 0x34]
push edi
push dword [ecx + 0x18]
add ecx, 0x14
call fcn.1805a24b
mov eax, dword [esi + 0x88]
mov ecx, dword [ebp - 0x14]
add dword [eax + 0x34], ecx
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x18059d07
mov edx, dword [esi + 0x88]
cmp dword [edx + 0x30], ebx
je 0x18059d07
cmp byte [ebp - 5], bl
je 0x18059d07
mov eax, dword [ecx]
push ebx
push 0x80000
push dword [edx + 0x30]
push dword [edx + 0x34]
call dword [eax + 8]
cmp edi, dword [ebp - 0x34]
jne 0x18059b41
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x18059d36
cmp ecx, dword [eax + 0x34]
je 0x18059d36
mov ecx, 0x18210cf0
call fcn.1801f0d2
mov eax, 0x80072efe
jmp 0x18059c79
mov byte [esi + 0x90], 1
jmp 0x18059c7b