Function at 0x3002f485
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x3002223c]
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 0x3002f548
call fcn.3003da0a
test eax, eax
je 0x3002f53a
push 0x30003e90
call fcn.3003daa4
cmp dword [esi + 4], edi
je 0x3002f7e2
jmp 0x3002f7d8
mov eax, dword [esi]
test al, 2
je 0x3002f574
and eax, 0x10000000
push eax
call fcn.3006b934
test eax, eax
jne 0x3002f574
call fcn.3003da0a
test eax, eax
je 0x3002f7e2
push 0x30003e5c
jmp 0x3002f7be
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x66c]
push eax
push esi
call fcn.3002e3df
test eax, eax
jne 0x3002f5a0
call fcn.3003da0a
test eax, eax
je 0x3002f7e2
push 0x30003e28
jmp 0x3002f7be
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.3002e3df
test eax, eax
jne 0x3002f5db
call fcn.3003da0a
test eax, eax
je 0x3002f7e2
push 0x30003df4
jmp 0x3002f7be
cmp dword [0x300c7a7c], ebx
jne 0x3002f628
call fcn.3002f8d2
test eax, eax
je 0x3002f628
cmp dword [0x300c1bc0], 2
jne 0x3002f61b
mov eax, dword [ebp - 0x668]
mov eax, dword [eax + 0x113c]
cmp eax, ebx
je 0x3002f60e
cmp word [eax], bx
je 0x3002f60e
mov eax, edi
jmp 0x3002f610
xor eax, eax
mov ebx, dword [ebp - 0x664]
mov dword [ebx + 0x28], eax
jmp 0x3002f62e
mov eax, dword [ebp - 0x664]
mov dword [eax + 0x28], edi
mov ebx, eax
jmp 0x3002f62e
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.300325e6
test eax, eax
jne 0x3002f66b
call fcn.3003da0a
test eax, eax
je 0x3002f7e2
push 0x30003db8
jmp 0x3002f7be
push dword [ebp - 0x66c]
push esi
call fcn.3002e4ac
test eax, eax
je 0x3002f7e2
lea ecx, [ebp - 0x678]
push ecx
push 0x100002
mov edi, 0x104
push edi
lea ecx, [ebp - 0x658]
push ecx
push 0x30003dac
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x660]
push eax
call fcn.3003d1a7
test eax, eax
jne 0x3002f6d5
call fcn.3003da0a
test eax, eax
je 0x3002f6c4
push 0x30003d74
call fcn.3003daa4
push 0
push 0x30303030
call fcn.300434a3
jmp 0x3002f7e2
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 0x3002f70b
call fcn.3003da0a
test eax, eax
je 0x3002f7e2
push 0x30003d48
jmp 0x3002f7be
push edi
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.3002d868
push esi
call fcn.3002c65d
test eax, eax
je 0x3002f7e2
lea eax, [ebp - 0x678]
push eax
push ebx
push dword [ebp - 0x668]
lea eax, [ebp - 0x450]
push eax
call fcn.3002cc72
test eax, eax
jne 0x3002f75f
call fcn.3003da0a
test eax, eax
je 0x3002f7e2
push 0x30003d0c
jmp 0x3002f7be
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.3005b2d4
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x30003940
call fcn.3005b356
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x30022604
call fcn.3005b356
lea eax, [ebp - 0x678]
push eax
push 0x100002
lea eax, [ebp - 0x20c]
push eax
call fcn.3002e569
test eax, eax
jne 0x3002f7c5
call fcn.3003da0a
test eax, eax
je 0x3002f7e2
push 0x30003cd8
call fcn.3003daa4
jmp 0x3002f7e2
call fcn.3003da0a
test eax, eax
je 0x3002f7d8
push 0x30003cb4
call fcn.3003daa4
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 0x3002f804
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x65c], edi
je 0x3002f82a
test dword [esi], 0x10000000
jne 0x3002f81d
call fcn.3002c864
test eax, eax
je 0x3002f82a
mov eax, dword [esi]
or eax, 0x30000
push eax
call fcn.3002f3e4
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x65c], edi
pop edi
pop esi
pop ebx
jne 0x3002f859
lea eax, [ebp - 0x658]
push eax
call fcn.3003d11f
lea eax, [ebp - 0x450]
push eax
call fcn.3003d11f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x65c]
xor ecx, ebp
call fcn.3006961b
leave
ret 0xc