Function at 0x3002f5d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x300222cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x664], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov ebx, 0x206
push ebx
mov dword [ebp - 0x668], eax
lea eax, [ebp - 0x656]
push edi
push eax
mov dword [ebp - 0x660], edi
mov word [ebp - 0x658], di
call sub.MSVCR80.dll_memset
push 0x244
lea eax, [ebp - 0x450]
push edi
push eax
call sub.MSVCR80.dll_memset
mov dword [ebp - 0x678], edi
xor eax, eax
lea edi, [ebp - 0x674]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push ebx
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x66c], edi
mov dword [ebp - 0x65c], edi
mov word [ebp - 0x20c], di
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 0x21c]
mov eax, dword [eax]
add esp, 0x24
cmp eax, dword [esi + 4]
jb 0x3002f698
call fcn.3003db37
test eax, eax
je 0x3002f68a
push 0x30003ec0
call fcn.3003dbd1
cmp dword [esi + 4], edi
je 0x3002f932
jmp 0x3002f928
mov eax, dword [esi]
test al, 2
je 0x3002f6c4
and eax, 0x10000000
push eax
call fcn.3006ba92
test eax, eax
jne 0x3002f6c4
call fcn.3003db37
test eax, eax
je 0x3002f932
push 0x30003e8c
jmp 0x3002f90e
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x66c]
push eax
push esi
call fcn.3002e52f
test eax, eax
jne 0x3002f6f0
call fcn.3003db37
test eax, eax
je 0x3002f932
push 0x30003e58
jmp 0x3002f90e
xor ebx, ebx
push ebx
lea eax, [ebp - 0x674]
push eax
push esi
mov dword [ebp - 0x670], ebx
mov dword [ebp - 0x678], 0xc
call fcn.3002e52f
test eax, eax
jne 0x3002f72b
call fcn.3003db37
test eax, eax
je 0x3002f932
push 0x30003e24
jmp 0x3002f90e
cmp dword [0x300d1718], ebx
jne 0x3002f778
call fcn.3002fa20
test eax, eax
je 0x3002f778
cmp dword [0x300cb85c], 2
jne 0x3002f76b
mov eax, dword [ebp - 0x668]
mov eax, dword [eax + 0x113c]
cmp eax, ebx
je 0x3002f75e
cmp word [eax], bx
je 0x3002f75e
mov eax, edi
jmp 0x3002f760
xor eax, eax
mov ebx, dword [ebp - 0x664]
mov dword [ebx + 0x28], eax
jmp 0x3002f77e
mov eax, dword [ebp - 0x664]
mov dword [eax + 0x28], edi
mov ebx, eax
jmp 0x3002f77e
mov ebx, dword [ebp - 0x664]
mov eax, dword [ebp - 0x668]
mov dword [ebx + 0x14], edi
mov ecx, dword [eax + 0x1140]
mov dword [ebx + 0x30], ecx
push dword [eax + 0x113c]
push 0
push 0
push ebx
call fcn.3003273b
test eax, eax
jne 0x3002f7bb
call fcn.3003db37
test eax, eax
je 0x3002f932
push 0x30003de8
jmp 0x3002f90e
push dword [ebp - 0x66c]
push esi
call fcn.3002e5fc
test eax, eax
je 0x3002f932
lea ecx, [ebp - 0x678]
push ecx
push 0x100002
mov edi, 0x104
push edi
lea ecx, [ebp - 0x658]
push ecx
push 0x30003ddc
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x660]
push eax
call fcn.3003d2d4
test eax, eax
jne 0x3002f825
call fcn.3003db37
test eax, eax
je 0x3002f814
push 0x30003da4
call fcn.3003dbd1
push 0
push 0x30303030
call fcn.300435b4
jmp 0x3002f932
push 0
lea eax, [ebp - 0x67c]
push eax
push dword [ebx + 0x1c]
push dword [ebx + 0x20]
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x3002f85b
call fcn.3003db37
test eax, eax
je 0x3002f932
push 0x30003d78
jmp 0x3002f90e
push edi
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.3002d9b8
push esi
call fcn.3002c7b5
test eax, eax
je 0x3002f932
lea eax, [ebp - 0x678]
push eax
push ebx
push dword [ebp - 0x668]
lea eax, [ebp - 0x450]
push eax
call fcn.3002cdca
test eax, eax
jne 0x3002f8af
call fcn.3003db37
test eax, eax
je 0x3002f932
push 0x30003d3c
jmp 0x3002f90e
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.3005b404
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x30003970
call fcn.3005b486
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x30022694
call fcn.3005b486
lea eax, [ebp - 0x678]
push eax
push 0x100002
lea eax, [ebp - 0x20c]
push eax
call fcn.3002e6b9
test eax, eax
jne 0x3002f915
call fcn.3003db37
test eax, eax
je 0x3002f932
push 0x30003d08
call fcn.3003dbd1
jmp 0x3002f932
call fcn.3003db37
test eax, eax
je 0x3002f928
push 0x30003ce4
call fcn.3003dbd1
mov dword [ebp - 0x65c], 1
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor edi, edi
cmp dword [ebp - 0x660], edi
je 0x3002f954
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x65c], edi
je 0x3002f97a
test dword [esi], 0x10000000
jne 0x3002f96d
call fcn.3002c9bc
test eax, eax
je 0x3002f97a
mov eax, dword [esi]
or eax, 0x30000
push eax
call fcn.3002f534
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x65c], edi
pop edi
pop esi
pop ebx
jne 0x3002f9a9
lea eax, [ebp - 0x658]
push eax
call fcn.3003d24c
lea eax, [ebp - 0x450]
push eax
call fcn.3003d24c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x65c]
xor ecx, ebp
call fcn.30069776
leave
ret 0xc