Function at 0x1805de4a
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 0x1805de6e
xor eax, eax
jmp 0x1805e038
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.18063f9d
mov ecx, dword [esi + 0x88]
cmp dword [ecx + 0x30], ebx
jne 0x1805dea6
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 0x1805debb
cmp dword [ecx + 0x20], 0xce
mov byte [ebp - 5], bl
jne 0x1805debf
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.1806402a
mov dword [ebp - 0xc], eax
test eax, eax
js 0x1805df27
lea ecx, [edi + 0x38]
mov dword [edi + 0x24], ebx
push ecx
lea ecx, [ebp - 0x24]
call fcn.1801396e
jmp 0x1805defd
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.18013989
test al, al
jne 0x1805deef
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [ebp - 0xc], ebx
jl 0x1805df27
push ecx
mov ecx, edi
call fcn.18064067
test eax, eax
js 0x1805df27
mov eax, dword [edi + 0x24]
jmp 0x1805df29
mov eax, ebx
inc eax
lea ecx, [ebp - 0x38]
push eax
call fcn.1800e440
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.1806402a
mov dword [ebp - 0x14], eax
test eax, eax
js 0x1805e000
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x2c]
mov dword [eax + 0x28], ebx
add eax, 0x38
push eax
call fcn.1801396e
lea ecx, [ebp - 0x2c]
call fcn.18013989
test al, al
je 0x1805df9d
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.18013989
test al, al
jne 0x1805df7c
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 0x1805e000
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.18064067
test eax, eax
js 0x1805e000
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x38]
mov eax, dword [eax + 0x28]
push eax
mov dword [ebp - 0x14], eax
call fcn.1800e440
mov edi, dword [ebp - 0x38]
cmp edi, dword [ebp - 0x34]
je 0x1805e057
mov eax, dword [esi + 0x48]
cmp dword [eax - 0xc], ebx
je 0x1805e03f
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 0x1805e057
call fcn.18018dce
mov ebx, eax
test edi, edi
je 0x1805e036
mov eax, dword [ebp - 0x30]
sub eax, edi
mov dword [ebp - 0x14], edi
mov dword [ebp + 8], eax
cmp eax, 0x1000
jb 0x1805e02d
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.18007456
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
pop ecx
pop ecx
push eax
push edi
call fcn.18160b12
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.1805e61a
mov eax, dword [esi + 0x88]
mov ecx, dword [ebp - 0x14]
add dword [eax + 0x34], ecx
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x1805e08e
mov edx, dword [esi + 0x88]
cmp dword [edx + 0x30], ebx
je 0x1805e08e
cmp byte [ebp - 5], bl
je 0x1805e08e
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 0x1805dec8
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x1805e0bd
cmp ecx, dword [eax + 0x34]
je 0x1805e0bd
mov ecx, 0x1822cce8
call fcn.18025ba7
mov eax, 0x80072efe
jmp 0x1805e000
mov byte [esi + 0x90], 1
jmp 0x1805e002