Function at 0x87ceb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8b8ef4
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x8d0e70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x87ceee
lea eax, [ecx - 7]
jmp 0x87d21d
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x17c], 0
push eax
push edi
push ecx
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WriteFile_1]
test eax, eax
je 0x87d074
cmp dword [ebp - 0x17c], edi
je 0x87d064
push 0x8cb92c
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x8cbcf8
call fcn.00886ac0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
push ecx
lea ecx, [ebp - 0x178]
call fcn.0087d6f0
mov ecx, eax
call fcn.0087d680
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push eax
push ecx
lea ecx, [ebp - 0xd0]
call fcn.0087d610
mov ecx, eax
call fcn.0087d340
mov esi, eax
cmp dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18c], 0x8cbcf8
cmovae ecx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x18c]
call fcn.00886ac0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x19c]
call fcn.008862c0
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 0x10
jb 0x87cfb7
mov esi, dword [esi]
push ecx
mov ecx, dword [0x8d361c]
push 0
push 0xde
push esi
push dword [eax + 4]
call fcn.00895d10
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x19c], 0x8cbcf8
test eax, eax
je 0x87cfeb
push eax
call fcn.008a61a1
add esp, 4
mov eax, dword [ebp - 0x188]
test eax, eax
je 0x87cffe
push eax
call fcn.008a61a1
add esp, 4
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x87d013
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00876670
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
cmp eax, 0x10
jb 0x87d03a
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00876670
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
test eax, eax
je 0x87d05c
push eax
call fcn.008a61a1
add esp, 4
or eax, 0xffffffff
jmp 0x87d21d
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x87d21d
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
mov esi, eax
cmp esi, 0xe9
ja 0x87d0b0
je case.0x87d095.109
cmp esi, 0xe8
ja case.0x87d095.1
movzx eax, byte [esi + 0x87d250]
jmp dword [eax*4 + 0x87d23c]
mov eax, 0xfffffff2
jmp 0x87d21d
mov eax, 0xffffffe7
jmp 0x87d21d
sub eax, 0x3e5
je case.0x87d095.0
sub eax, 0x313
je case.0x87d095.8
sub eax, 0x20
je case.0x87d095.8
push 0x8cb92c
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0x8cbcf8
call fcn.00886ac0
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 5
push 0x8cbc7c
push eax
mov dword [ebp - 0x18c], 0x8cbcf8
call fcn.008861a0
add esp, 0xc
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x18c]
push eax
call fcn.00886ac0
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 6
push eax
push ecx
lea ecx, [ebp - 0xc0]
call fcn.0087d550
mov ecx, eax
call fcn.0087d470
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 7
push eax
push ecx
lea ecx, [ebp - 0x130]
call fcn.0087d400
mov ecx, eax
call fcn.0087d340
mov esi, eax
cmp dword [ebp - 0x4c], 0x10
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x20], 0x8cbcf8
cmovae ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00886ac0
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
call fcn.00886370
mov byte [ebp - 4], 0xa
cmp dword [esi + 0x14], 0x10
jb 0x87d194
mov esi, dword [esi]
push ecx
mov ecx, dword [0x8d361c]
push 0
push 0xfa
push esi
push dword [eax + 4]
call fcn.00895d10
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0x8cbcf8
test eax, eax
je 0x87d1c2
push eax
call fcn.008a61a1
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x87d1d2
push eax
call fcn.008a61a1
add esp, 4
lea ecx, [ebp - 0x78]
call fcn.008762b0
lea ecx, [ebp - 0x60]
call fcn.008762b0
mov eax, dword [ebp - 0x188]
test eax, eax
je 0x87d1f5
push eax
call fcn.008a61a1
add esp, 4
mov eax, dword [ebp - 0x198]
test eax, eax
je 0x87d05c
push eax
call fcn.008a61a1
add esp, 4
or eax, 0xffffffff
jmp 0x87d21d
mov eax, 0xfffffff6
jmp 0x87d21d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.008a28ee
mov esp, ebp
pop ebp
ret 8