Function at 0x1002d080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fd331
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x280
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 0x30], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x1002d0fd
lea ecx, [ebp - 0x258]
call fcn.10032bf0
push 0x101544b0
lea eax, [ebp - 0x258]
push eax
call fcn.100cb4c0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x288]
call fcn.10031240
mov byte [ebp - 0x289], al
movzx eax, byte [ebp - 0x289]
test eax, eax
jne 0x1002d13d
lea ecx, [ebp - 0x260]
call fcn.10032c70
push 0x101544a0
lea ecx, [ebp - 0x260]
push ecx
call fcn.100cb4c0
mov dword [ebp - 0x23c], 0x1ff
mov byte [ebp - 0x35], 0
push 3
mov edx, dword [ebp - 0x288]
add edx, 0xe
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.10003f80
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x238]
push ecx
call fcn.100cac20
add esp, 0xc
mov edx, dword [ebp - 0x288]
mov eax, dword [edx + 0x114]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.100315c0
add esp, 0x10
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x248]
call fcn.1000bcc0
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 1
push 0x200
push 0
lea edx, [ebp - 0x238]
push edx
call fcn.100cac20
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x248]
call fcn.1000c220
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x1002d22b
lea ecx, [ebp - 0x268]
call fcn.10032b70
push 0x10154490
lea edx, [ebp - 0x268]
push edx
call fcn.100cb4c0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1002d268
lea ecx, [ebp - 0x270]
call fcn.10032b70
push 0x10154490
lea ecx, [ebp - 0x270]
push ecx
call fcn.100cb4c0
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x2c]
je 0x1002d28c
lea ecx, [ebp - 0x278]
call fcn.10032b70
push 0x10154490
lea eax, [ebp - 0x278]
push eax
call fcn.100cb4c0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x27c], ecx
mov edx, dword [ebp - 0x27c]
push edx
call fcn.100aaaba
add esp, 4
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.1000dc40
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x288]
mov byte [ecx + 0xd], 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.1000bdb0
jmp 0x1002d362
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret 4