Function at 0x3002f637
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x30022344]
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 fcn.3006a130
push 0x244
lea eax, [ebp - 0x450]
push edi
push eax
call fcn.3006a130
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 fcn.3006a130
mov eax, dword [esi + 0x21c]
mov eax, dword [eax]
add esp, 0x24
cmp eax, dword [esi + 4]
jb 0x3002f6fa
call fcn.3003dc3a
test eax, eax
je 0x3002f6ec
push 0x30003ef8
call fcn.3003dcd4
cmp dword [esi + 4], edi
je 0x3002f994
jmp 0x3002f98a
mov eax, dword [esi]
test al, 2
je 0x3002f726
and eax, 0x10000000
push eax
call fcn.3006bbb0
test eax, eax
jne 0x3002f726
call fcn.3003dc3a
test eax, eax
je 0x3002f994
push 0x30003ec4
jmp 0x3002f970
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x66c]
push eax
push esi
call fcn.3002e591
test eax, eax
jne 0x3002f752
call fcn.3003dc3a
test eax, eax
je 0x3002f994
push 0x30003e90
jmp 0x3002f970
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.3002e591
test eax, eax
jne 0x3002f78d
call fcn.3003dc3a
test eax, eax
je 0x3002f994
push 0x30003e5c
jmp 0x3002f970
cmp dword [0x300d2748], ebx
jne 0x3002f7da
call fcn.3002fa82
test eax, eax
je 0x3002f7da
cmp dword [0x300cc88c], 2
jne 0x3002f7cd
mov eax, dword [ebp - 0x668]
mov eax, dword [eax + 0x113c]
cmp eax, ebx
je 0x3002f7c0
cmp word [eax], bx
je 0x3002f7c0
mov eax, edi
jmp 0x3002f7c2
xor eax, eax
mov ebx, dword [ebp - 0x664]
mov dword [ebx + 0x28], eax
jmp 0x3002f7e0
mov eax, dword [ebp - 0x664]
mov dword [eax + 0x28], edi
mov ebx, eax
jmp 0x3002f7e0
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.300327a9
test eax, eax
jne 0x3002f81d
call fcn.3003dc3a
test eax, eax
je 0x3002f994
push 0x30003e20
jmp 0x3002f970
push dword [ebp - 0x66c]
push esi
call fcn.3002e65e
test eax, eax
je 0x3002f994
lea ecx, [ebp - 0x678]
push ecx
push 0x100002
mov edi, 0x104
push edi
lea ecx, [ebp - 0x658]
push ecx
push 0x30003e14
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x660]
push eax
call fcn.3003d3d7
test eax, eax
jne 0x3002f887
call fcn.3003dc3a
test eax, eax
je 0x3002f876
push 0x30003ddc
call fcn.3003dcd4
push 0
push 0x30303030
call fcn.300436bb
jmp 0x3002f994
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 0x3002f8bd
call fcn.3003dc3a
test eax, eax
je 0x3002f994
push 0x30003db0
jmp 0x3002f970
push edi
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.3002da18
push esi
call fcn.3002c815
test eax, eax
je 0x3002f994
lea eax, [ebp - 0x678]
push eax
push ebx
push dword [ebp - 0x668]
lea eax, [ebp - 0x450]
push eax
call fcn.3002ce2a
test eax, eax
jne 0x3002f911
call fcn.3003dc3a
test eax, eax
je 0x3002f994
push 0x30003d74
jmp 0x3002f970
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.3005b50c
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x300039a8
call fcn.3005b58e
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x3002270c
call fcn.3005b58e
lea eax, [ebp - 0x678]
push eax
push 0x100002
lea eax, [ebp - 0x20c]
push eax
call fcn.3002e71b
test eax, eax
jne 0x3002f977
call fcn.3003dc3a
test eax, eax
je 0x3002f994
push 0x30003d40
call fcn.3003dcd4
jmp 0x3002f994
call fcn.3003dc3a
test eax, eax
je 0x3002f98a
push 0x30003d1c
call fcn.3003dcd4
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 0x3002f9b6
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x65c], edi
je 0x3002f9dc
test dword [esi], 0x10000000
jne 0x3002f9cf
call fcn.3002ca1c
test eax, eax
je 0x3002f9dc
mov eax, dword [esi]
or eax, 0x30000
push eax
call fcn.3002f596
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x65c], edi
pop edi
pop esi
pop ebx
jne 0x3002fa0b
lea eax, [ebp - 0x658]
push eax
call fcn.3003d34f
lea eax, [ebp - 0x450]
push eax
call fcn.3003d34f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x65c]
xor ecx, ebp
call fcn.30069876
leave
ret 0xc