Function at 0x3005c910
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 0x3005c94e
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 0x3005c99d
cmp ecx, dword [ebx + 0x1478]
jne 0x3005c99d
mov dword [ebp - 0xa2c], edx
jmp 0x3005c9b7
lea esi, [ebx + 0x1f44]
cmp dword [esi], edx
jne 0x3005c9af
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.3001b809
lea edx, [ebx + 0x1f30]
xor eax, eax
cmp dword [edx], eax
jne 0x3005ca07
cmp dword [ebx + 0x1f34], eax
jne 0x3005ca07
cmp dword [ebx + 0x1f38], eax
jne 0x3005ca07
cmp dword [ebx + 0x1f3c], eax
jne 0x3005ca07
cmp dword [ebx + 0x1f40], eax
jne 0x3005ca07
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 0x3005ca5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xa50], eax
jl 0x3005cc13
jmp 0x3005ca60
xor edi, edi
lea eax, [ebp - 0xa58]
push eax
call fcn.3002e7ee
cmp eax, edi
mov dword [ebp - 0xa60], eax
jne 0x3005ca80
mov dword [ebp - 0xa50], 0x8007000e
cmp dword [ebp - 0xa50], edi
jl 0x3005cb4d
lea esi, [ebx + 0x1e]
cmp esi, edi
je 0x3005cae5
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.3001b809
lea eax, [ebp - 0x404]
push eax
push edi
lea eax, [ebp - 0x804]
push eax
call fcn.300402dd
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.30031403
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 0x3005cbc3
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 0x3005cbb1
mov eax, dword [ebp - 0xa54]
cmp eax, dword [ebp - 0xa58]
je 0x3005cbc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
mov dword [ebp - 0xa50], eax
push dword [ebp - 0xa60]
call dword [sym.imp.MSVCR80.dll_free]
cmp dword [ebp - 0xa50], edi
pop ecx
jl 0x3005cc13
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 0x3005cc01
cmp dword [ebp - 0xa54], edi
je 0x3005cc13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
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.30085c36
leave
ret 4