Function at 0x3005ca9f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa60
mov eax, dword [0x30008648]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x2158]
mov ecx, dword [ebp + 8]
push esi
xor edx, edx
cmp eax, 2
push edi
mov dword [ebp - 0xa5c], ecx
mov dword [ebp - 0xa50], edx
mov esi, 0x30005be8
je 0x3005cadd
mov esi, 0x30005bd8
cmp byte [ebx + 0x1c], dl
mov eax, dword [ebx + 0x1f28]
lea edi, [ebp - 0xa4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xa34], eax
mov eax, dword [ebx + 0x1f2c]
mov dword [ebp - 0xa30], eax
mov eax, dword [ebx + 0x1f20]
mov dword [ebp - 0xa3c], eax
mov eax, dword [ebx + 0x1f24]
mov dword [ebp - 0xa38], eax
je 0x3005cb2c
cmp ecx, dword [ebx + 0x1478]
jne 0x3005cb2c
mov dword [ebp - 0xa2c], edx
jmp 0x3005cb46
lea esi, [ebx + 0x1f44]
cmp dword [esi], edx
jne 0x3005cb3e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi], eax
mov eax, dword [esi]
mov dword [ebp - 0xa2c], eax
lea eax, [ebx + 0x1f50]
push eax
push 0x104
lea eax, [ebp - 0xa28]
push eax
call fcn.3001b99e
lea edx, [ebx + 0x1f30]
xor eax, eax
cmp dword [edx], eax
jne 0x3005cb96
cmp dword [ebx + 0x1f34], eax
jne 0x3005cb96
cmp dword [ebx + 0x1f38], eax
jne 0x3005cb96
cmp dword [ebx + 0x1f3c], eax
jne 0x3005cb96
cmp dword [ebx + 0x1f40], eax
jne 0x3005cb96
push 5
pop ecx
mov esi, 0x30005bb0
mov edi, edx
rep movsd dword es:[edi], dword [esi]
push 5
pop ecx
push eax
mov esi, edx
lea edi, [ebp - 0x820]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x1f48]
push eax
push eax
push dword [ebp - 0xa5c]
mov dword [ebp - 0x80c], ecx
mov ecx, dword [ebx + 0x1f4c]
mov dword [ebp - 0x808], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x3005cbed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xa50], eax
jl 0x3005cda2
jmp 0x3005cbef
xor edi, edi
lea eax, [ebp - 0xa58]
push eax
call fcn.3002e4e7
cmp eax, edi
mov dword [ebp - 0xa60], eax
jne 0x3005cc0f
mov dword [ebp - 0xa50], 0x8007000e
cmp dword [ebp - 0xa50], edi
jl 0x3005ccdc
lea esi, [ebx + 0x1e]
cmp esi, edi
je 0x3005cc74
mov eax, 0x100
push eax
lea ecx, [ebp - 0x404]
push ecx
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.MSVCR80.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x204]
push eax
mov edi, 0x200
push edi
lea eax, [ebp - 0x804]
push eax
call fcn.3001b99e
lea eax, [ebp - 0x404]
push eax
push edi
lea eax, [ebp - 0x804]
push eax
call fcn.3003ffd9
xor edi, edi
movzx eax, word [ebp - 0x820]
movzx ecx, word [ebp - 0x81c]
shl eax, 0x10
or eax, ecx
neg esi
sbb esi, esi
lea ecx, [ebp - 0x804]
and esi, ecx
mov cx, word [ebp - 0xa28]
neg cx
push esi
lea edx, [ebp - 0xa28]
sbb ecx, ecx
and ecx, edx
movzx edx, word [ebp - 0x814]
push ecx
push dword [ebp - 0xa2c]
movzx ecx, word [ebp - 0x818]
shl ecx, 0x10
or ecx, edx
push ecx
push eax
push dword [ebp - 0x810]
push eax
push dword [ebp - 0xa58]
push dword [ebp - 0xa60]
call fcn.3003108b
mov eax, dword [0x300b5f94]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add eax, 0x248
xor ecx, ecx
test eax, eax
setge cl
dec ecx
mov dword [ebx + 0x1494], ecx
mov eax, dword [0x300b5f94]
add eax, 0x248
cmp dword [ebp - 0xa50], edi
mov dword [ebx + 0x1490], eax
jl 0x3005cd52
push edi
lea eax, [ebp - 0xa54]
push eax
push dword [ebp - 0xa58]
push dword [ebp - 0xa60]
push dword [ebp - 0xa5c]
call esi
test eax, eax
je 0x3005cd40
mov eax, dword [ebp - 0xa54]
cmp eax, dword [ebp - 0xa58]
je 0x3005cd52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
mov dword [ebp - 0xa50], eax
push dword [ebp - 0xa60]
call dword [sym.imp.MSVCR80.dll_free]
cmp dword [ebp - 0xa50], edi
pop ecx
jl 0x3005cda2
push edi
lea eax, [ebp - 0xa54]
push eax
mov edi, 0x248
push edi
lea eax, [ebp - 0xa4c]
push eax
push dword [ebp - 0xa5c]
call esi
test eax, eax
je 0x3005cd90
cmp dword [ebp - 0xa54], edi
je 0x3005cda2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
mov dword [ebp - 0xa50], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa50]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30085f59
leave
ret 4