Function at 0x3002f55d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x3002226c]
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 0x3002f620
call fcn.3003daba
test eax, eax
je 0x3002f612
push 0x30003ec0
call fcn.3003db54
cmp dword [esi + 4], edi
je 0x3002f8ba
jmp 0x3002f8b0
mov eax, dword [esi]
test al, 2
je 0x3002f64c
and eax, 0x10000000
push eax
call fcn.3006b9e3
test eax, eax
jne 0x3002f64c
call fcn.3003daba
test eax, eax
je 0x3002f8ba
push 0x30003e8c
jmp 0x3002f896
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x66c]
push eax
push esi
call fcn.3002e4b7
test eax, eax
jne 0x3002f678
call fcn.3003daba
test eax, eax
je 0x3002f8ba
push 0x30003e58
jmp 0x3002f896
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.3002e4b7
test eax, eax
jne 0x3002f6b3
call fcn.3003daba
test eax, eax
je 0x3002f8ba
push 0x30003e24
jmp 0x3002f896
cmp dword [0x300d1718], ebx
jne 0x3002f700
call fcn.3002f9a8
test eax, eax
je 0x3002f700
cmp dword [0x300cb85c], 2
jne 0x3002f6f3
mov eax, dword [ebp - 0x668]
mov eax, dword [eax + 0x113c]
cmp eax, ebx
je 0x3002f6e6
cmp word [eax], bx
je 0x3002f6e6
mov eax, edi
jmp 0x3002f6e8
xor eax, eax
mov ebx, dword [ebp - 0x664]
mov dword [ebx + 0x28], eax
jmp 0x3002f706
mov eax, dword [ebp - 0x664]
mov dword [eax + 0x28], edi
mov ebx, eax
jmp 0x3002f706
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.300326be
test eax, eax
jne 0x3002f743
call fcn.3003daba
test eax, eax
je 0x3002f8ba
push 0x30003de8
jmp 0x3002f896
push dword [ebp - 0x66c]
push esi
call fcn.3002e584
test eax, eax
je 0x3002f8ba
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.3003d257
test eax, eax
jne 0x3002f7ad
call fcn.3003daba
test eax, eax
je 0x3002f79c
push 0x30003da4
call fcn.3003db54
push 0
push 0x30303030
call fcn.30043574
jmp 0x3002f8ba
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 0x3002f7e3
call fcn.3003daba
test eax, eax
je 0x3002f8ba
push 0x30003d78
jmp 0x3002f896
push edi
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.3002d940
push esi
call fcn.3002c73d
test eax, eax
je 0x3002f8ba
lea eax, [ebp - 0x678]
push eax
push ebx
push dword [ebp - 0x668]
lea eax, [ebp - 0x450]
push eax
call fcn.3002cd52
test eax, eax
jne 0x3002f837
call fcn.3003daba
test eax, eax
je 0x3002f8ba
push 0x30003d3c
jmp 0x3002f896
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.3005b354
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x30003970
call fcn.3005b3d6
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x30022634
call fcn.3005b3d6
lea eax, [ebp - 0x678]
push eax
push 0x100002
lea eax, [ebp - 0x20c]
push eax
call fcn.3002e641
test eax, eax
jne 0x3002f89d
call fcn.3003daba
test eax, eax
je 0x3002f8ba
push 0x30003d08
call fcn.3003db54
jmp 0x3002f8ba
call fcn.3003daba
test eax, eax
je 0x3002f8b0
push 0x30003ce4
call fcn.3003db54
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 0x3002f8dc
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x65c], edi
je 0x3002f902
test dword [esi], 0x10000000
jne 0x3002f8f5
call fcn.3002c944
test eax, eax
je 0x3002f902
mov eax, dword [esi]
or eax, 0x30000
push eax
call fcn.3002f4bc
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x65c], edi
pop edi
pop esi
pop ebx
jne 0x3002f931
lea eax, [ebp - 0x658]
push eax
call fcn.3003d1cf
lea eax, [ebp - 0x450]
push eax
call fcn.3003d1cf
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x65c]
xor ecx, ebp
call fcn.300696c7
leave
ret 0xc