Function at 0x10c2f23
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x10e607c]
and dword [ebp - 0x420], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
push edi
mov edi, ecx
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x34]
mov dword [ebp - 0x424], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x42c], ecx
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx]
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x40c]
and dword [ecx], 0
xor ecx, ecx
mov dword [eax], 1
cmp dword [edi], ecx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x408], edx
je 0x10c308b
mov eax, dword [ebx]
cmp eax, ecx
mov word [ebx + 0xa48], cx
je 0x10c2fb7
cmp eax, 0xffffffff
je 0x10c2fb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov ecx, 0x48545058
cmp dword [edi], ecx
jne 0x10c2fd4
mov word [ebx + 0x220], 1
mov eax, dword [edi + 8]
mov dword [ebx + 0x224], eax
jmp 0x10c2fdc
and word [ebx + 0x220], 0
mov eax, dword [edi]
cmp eax, 0x4d555343
jne 0x10c2ff0
mov word [ebx + 0xa48], 1
jmp 0x10c3006
cmp eax, 0x42444d58
je 0x10c3006
cmp eax, ecx
je 0x10c3006
cmp eax, 0x474c4f58
jne 0x10c3418
mov eax, dword [edi]
and dword [ebx + 0x218], 0
and dword [ebx + 0x21c], 0
mov dword [ebx + 8], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x210], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x214], eax
mov ecx, dword [ebp - 0x40c]
mov ecx, dword [ecx]
lea eax, [ebx + 0x218]
add dword [eax], ecx
mov ecx, dword [eax]
adc dword [eax + 4], 0
cmp ecx, dword [ebx + 0x210]
jne 0x10c3075
mov eax, dword [eax + 4]
cmp eax, dword [ebx + 0x214]
jne 0x10c3075
mov eax, dword [ebp - 0x42c]
mov word [eax + 0x44], 1
mov eax, dword [ebx]
test eax, eax
je 0x10c3075
cmp eax, 0xffffffff
je 0x10c3075
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov ax, word [ebp - 0x420]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 0xc
cmp word [ebx + 0xa48], cx
je 0x10c309c
xor ax, ax
jmp 0x10c3394
cmp word [ebx + 0x220], cx
je 0x10c31f7
mov ecx, dword [ebx + 0x224]
cmp dword [ebp - 0x410], ecx
jae 0x10c30be
mov dword [eax], ecx
jmp 0x10c31ef
mov eax, dword [ebp - 0x42c]
and word [eax + 0x44], 0
mov eax, dword [esi + 0x14]
cmp byte [eax + 0x28], 0x1e
jne 0x10c3168
call fcn.010cddf3
mov esi, dword [ebp - 0x408]
add dword [ebp - 0x408], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x448]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x408]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010cddf3
mov esi, dword [ebp - 0x408]
add dword [ebp - 0x408], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x648]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x408]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010cddf3
mov esi, dword [ebp - 0x408]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x248]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x408]
add esi, eax
mov edx, esi
call fcn.010cddf3
lea edi, [ebx + 0x848]
jmp 0x10c31cb
call fcn.010cddf3
mov esi, dword [ebp - 0x408]
add dword [ebp - 0x408], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x248]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x408]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010cddf3
mov esi, dword [ebp - 0x408]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x448]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x408]
add esi, eax
mov edx, esi
call fcn.010cddf3
lea edi, [ebx + 0x648]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x224]
mov ecx, dword [ebp - 0x40c]
mov dword [ecx], eax
and word [ebx + 0x220], 0
xor ax, ax
jmp 0x10c307c
mov edi, dword [edx]
cmp edi, ecx
jbe 0x10c353b
mov ecx, dword [ebx + 0x218]
or ecx, dword [ebx + 0x21c]
jne 0x10c353b
push 4
pop ecx
cmp dword [ebp - 0x410], ecx
jae 0x10c3225
mov dword [eax], ecx
jmp 0x10c302b
add edi, 4
cmp edi, dword [ebp - 0x410]
jbe 0x10c323b
mov dx, word [edx]
add dx, cx
movzx ecx, dx
jmp 0x10c321e
and dword [ebp - 0x41c], 0
add edx, 4
mov eax, edx
jmp 0x10c3257
cmp cx, 0x5c
jne 0x10c3255
mov dword [ebp - 0x414], eax
inc eax
inc eax
mov cx, word [eax]
test cx, cx
jne 0x10c3249
mov esi, dword [ebp - 0x414]
mov edx, esi
call fcn.010cddf3
mov ecx, eax
shr ecx, 2
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x408]
add edi, 4
mov edx, edi
call fcn.010cddf3
mov esi, dword [ebp - 0x408]
cmp eax, dword [esi]
je 0x10c32b1
mov edx, edi
call fcn.010cddf3
shr eax, 1
lea eax, [esi + eax*2 + 4]
mov ax, word [eax]
mov word [ebp - 0x41c], ax
cmp dword [ebx + 8], 0x474c4f58
jne 0x10c32db
xor eax, eax
mov ax, word [ebx + 0x22a]
push eax
lea eax, [ebp - 0x404]
push eax
mov eax, dword [ebp - 0x418]
call fcn.010c2b62
jmp 0x10c3446
mov eax, dword [ebp - 0x418]
mov eax, dword [eax + 0x14]
mov al, byte [eax + 0x28]
cmp al, 0x1e
jne 0x10c3421
mov eax, dword [ebp - 0x424]
mov edx, dword [ebp - 0x414]
test edx, edx
mov dword [eax + 0x2210], 0x7fffffff
mov word [ebx + 0x22a], 1
je 0x10c3446
mov eax, dword [ebp - 0x418]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x9c]
shr eax, 7
and eax, 3
cmp eax, 1
jne 0x10c33a7
cmp word [ebp - 0x41c], 0x45
je 0x10c3387
call fcn.010cddf3
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea ecx, [ebx + 0x448]
push ecx
mov dword [ebp - 0x424], eax
call esi
mov edi, eax
lea eax, [ebp - 0x404]
push eax
call esi
mov esi, dword [ebp - 0x414]
pop ecx
pop ecx
mov ecx, 0x224
sub ecx, eax
mov eax, dword [ebp - 0x424]
add edi, ecx
mov ecx, eax
lea edi, [ebx + edi*2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10c3440
mov word [ebx + 0xa48], 1
mov ax, 0xfeb1
mov ecx, dword [ebp - 0x410]
mov edx, dword [ebp - 0x40c]
mov dword [edx], ecx
jmp 0x10c307c
cmp eax, 2
jne 0x10c3446
cmp word [ebp - 0x41c], 0x46
je 0x10c3401
call fcn.010cddf3
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea ecx, [ebx + 0x648]
push ecx
mov dword [ebp - 0x424], eax
call esi
mov edi, eax
lea eax, [ebp - 0x404]
push eax
call esi
mov esi, dword [ebp - 0x414]
pop ecx
pop ecx
mov ecx, 0x324
sub ecx, eax
mov eax, dword [ebp - 0x424]
add edi, ecx
mov ecx, eax
lea edi, [ebx + edi*2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10c3440
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
mov word [ebx + 0xa48], 1
mov dword [ecx], eax
mov ax, 0xfeb1
jmp 0x10c307c
cmp al, 0x1f
jne 0x10c3446
mov eax, dword [ebp - 0x424]
mov dword [eax + 0x2210], 0x7fffffff
mov word [ebx + 0x22a], 1
jmp 0x10c3446
mov esi, dword [ebp - 0x408]
mov ax, word [esi]
mov ecx, dword [ebp - 0x40c]
add ax, 4
movzx eax, ax
add esi, 4
mov edx, esi
mov dword [ecx], eax
call fcn.010cddf3
push dword [ebp - 0x41c]
mov ecx, eax
shr ecx, 2
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x404]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x418]
push eax
push edi
push dword [edi]
call fcn.010c2c7b
mov esi, eax
test esi, esi
mov dword [ebp - 0x414], esi
jne 0x10c34bb
lea eax, [ebp - 0x404]
push eax
push 0xffffffffffffffff
push 0x1012b98
push dword [edi]
call fcn.01085d41
mov ax, 0xfe40
jmp 0x10c307c
mov edx, esi
call fcn.010cddf3
lea edx, [ebx + 0x10]
mov ecx, eax
shr ecx, 2
mov dword [ebx + 0xc], eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push 0xa000080
push 2
push esi
push esi
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x10c3501
mov dword [ebp - 0x420], 0xfffffe30
push dword [ebp - 0x414]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x40c]
mov eax, dword [eax]
sub dword [ebp - 0x410], eax
add dword [ebp - 0x408], eax
cmp word [ebp - 0x420], si
pop ecx
jne 0x10c302b
mov esi, dword [ebp - 0x418]
mov edx, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x410]
test ecx, ecx
je 0x10c302b
mov eax, dword [ebx + 0x210]
mov edi, dword [ebx + 0x218]
mov dword [ebp - 0x428], eax
xor eax, eax
add ecx, edi
adc eax, dword [ebx + 0x21c]
cmp eax, dword [ebx + 0x214]
jb 0x10c357d
mov eax, dword [ebp - 0x428]
ja 0x10c3579
cmp ecx, eax
jbe 0x10c357d
sub eax, edi
jmp 0x10c3583
mov eax, dword [ebp - 0x410]
push 0
lea ecx, [ebp - 0x430]
push ecx
push eax
push edx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10c35ad
mov ecx, dword [ebp - 0x430]
mov eax, dword [ebp - 0x40c]
add dword [eax], ecx
jmp 0x10c302b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x10c35de
cmp eax, 0x27
je 0x10c35de
push 0x100dd90
push eax
push 0x1012b7c
push dword [esi]
call fcn.01085d41
mov dword [ebp - 0x420], 0xfffffe40
jmp 0x10c302b
mov ax, 0xfe06
jmp 0x10c307c