Function at 0x10014e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [ebp - 0xbc], ebx
mov eax, dword [esi + 0x20]
or eax, dword [esi + 0x24]
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], ecx
mov byte [ebp - 0xa9], 0
jne 0x10014f2b
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x10014f2b
call edx
push dword [ebx + 0x4ac]
mov ecx, eax
mov eax, 0x10624dd3
push dword [ebx + 0x4a8]
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
push eax
push edx
call fcn.10011800
mov ecx, dword [ebp - 0xb4]
add esp, 0x10
mov edx, dword [sym.imp.KERNEL32.dll_GetTickCount]
movsd qword [ebx + 0x490], xmm0
or dword [ecx], 2
cmp dword [ebx + 0x108], 0
jne 0x1001517b
mov eax, dword [esi + 0xa0]
mov dword [ebx + 0x10c], eax
cmp byte [esi + 0xac], 0
jne 0x10015134
cmp dword [esi + 0x84], 2
mov ecx, dword [ebx + 0x114]
jne 0x10014fce
cmp dword [ecx + 0x58], 2
jne 0x10014fce
and dword [esi + 0xa8], 0xfffffffd
mov dword [esi + 0x84], 1
call edx
mov ecx, dword [ebp - 0xb8]
mov edi, eax
mov eax, 0x10624dd3
mul edi
shr edx, 6
imul esi, edx, 0x3e8
mov dword [ecx + 0x7c], edx
sub edi, esi
imul eax, edi, 0x3e8
mov dword [ecx + 0x80], eax
mov ecx, ebx
mov eax, dword [ebp - 0xb4]
and dword [eax], 0xfffffffd
mov edx, dword [ebx + 0x3f0]
call fcn.10007880
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x1ec]
test dword [eax + 0x3c], 0x40003
je 0x10014fe8
cmp dword [ecx + 0x58], 1
sete byte [ebp - 0xa9]
lea eax, [ebp - 0xb8]
mov edx, 0x4000
push eax
mov ecx, edi
call fcn.10014110
add esp, 4
test eax, eax
jne 0x10015384
mov edi, dword [ebp - 0xb8]
test edi, edi
je 0x10015134
jle 0x10015141
mov ecx, dword [ebp - 0xb0]
mov dword [ebx + 0x108], edi
mov eax, dword [ecx + 0x1ec]
test dword [eax + 0x3c], 0x30000
je 0x10015057
mov edx, edi
mov edi, ecx
call fcn.10030950
test eax, eax
je 0x1001517b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xa9], 0
jne 0x10015179
cmp byte [ebx + 0x216], 0
je 0x10015179
cmp dword [ebx + 0x856c], 0
jne 0x100150b6
push 0x8000
call dword [0x1005f648]
add esp, 4
mov dword [ebx + 0x856c], eax
test eax, eax
jne 0x100150b6
push str.Failed_to_alloc_scratch_buffer_
push ebx
call fcn.10010d80
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x10015116
mov edi, edi
mov eax, dword [ebx + 0x10c]
mov al, byte [edx + eax]
mov byte [ebp - 0xa9], al
cmp al, 0xa
mov eax, dword [ebx + 0x856c]
jne 0x10015101
mov byte [ecx + eax], 0xd
inc ecx
mov eax, dword [ebx + 0x856c]
mov byte [ecx + eax], 0xa
cmp byte [ebx + 0x216], 0
jne 0x10015110
add dword [ebx + 0x8648], 1
adc dword [ebx + 0x864c], 0
jmp 0x10015110
mov bl, byte [ebp - 0xa9]
mov byte [ecx + eax], bl
mov ebx, dword [ebp - 0xbc]
inc edx
inc ecx
cmp edx, edi
jl 0x100150c0
cmp ecx, edi
mov edi, dword [ebp - 0xb0]
je 0x1001517b
mov eax, dword [ebx + 0x856c]
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x108], ecx
jmp 0x1001517b
test byte [esi + 0xa8], 0x20
jne 0x10015382
mov ecx, dword [ebp - 0xb0]
and dword [esi + 0xa8], 0xfffffffd
cmp byte [ecx + 0x1cf], 0
je 0x10015382
call fcn.10014300
test eax, eax
je 0x10015382
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
mov edi, ecx
mov eax, dword [edi + 0x1fc]
xor ecx, ecx
cmp eax, dword [edi + 0x158]
lea eax, [ebp - 0xb4]
push eax
push dword [ebx + 0x108]
sete cl
mov dword [ebp - 0xb4], 0
push dword [ebx + 0x10c]
push ecx
mov eax, dword [edi + ecx*4 + 0x170]
push edi
call eax
add esp, 0x14
mov dword [ebp - 0xb0], eax
test eax, eax
jns 0x100151e2
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x100152d9
cmp eax, 0x51
jne 0x10015384
mov dword [ebp - 0xb0], 0
cmp byte [ebx + 0x2d0], 0
je 0x10015278
cmp byte [ebx + 0x2b8], 0
mov ecx, dword [ebx + 0x10c]
mov dword [ebp - 0xb4], ecx
je 0x10015321
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x10015321
push eax
push 0x1005698c
push str.Data
push str.__s__s__s_
lea eax, [ebp - 0xa8]
push 0xa0
push eax
call fcn.1001e160
lea edi, [ebp - 0xa8]
add esp, 0x18
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10015243
mov eax, dword [ebx + 0x190]
sub edi, ecx
test eax, eax
je 0x100152ef
push dword [ebx + 0x11c]
lea ecx, [ebp - 0xa8]
push edi
push ecx
push 0
push ebx
call eax
add esp, 0x14
test eax, eax
je 0x1001531b
mov edi, dword [ebp - 0xb0]
mov eax, edi
cdq
add dword [esi + 0x28], eax
mov eax, dword [esi + 0x28]
adc dword [esi + 0x2c], edx
cmp eax, dword [ebx + 0x8648]
jne 0x100152b2
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebx + 0x864c]
jne 0x100152b2
push str.We_are_completely_uploaded_and_fine_n
push ebx
mov byte [esi + 0xac], 1
call fcn.10010cc0
add esp, 8
mov ecx, dword [ebx + 0x108]
mov eax, dword [ebp - 0xb0]
cmp ecx, eax
je 0x1001534a
sub ecx, eax
add dword [ebx + 0x10c], eax
mov dword [ebx + 0x108], ecx
jmp 0x10015370
mov eax, 0x37
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x118]
push 1
push 2
push 0x10055194
call fcn.1004671e
push dword [ebx + 0x118]
lea eax, [ebp - 0xa8]
push 1
push edi
push eax
call fcn.1004671e
add esp, 0x20
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ebx + 0x190]
mov edi, dword [ebp - 0xb0]
test eax, eax
je 0x1001527e
push dword [ebx + 0x11c]
push edi
push ecx
push 4
push ebx
call eax
add esp, 0x14
jmp 0x1001527e
mov eax, dword [esi + 0xa0]
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x108], 0
cmp byte [esi + 0xac], 0
je 0x10015370
and dword [esi + 0xa8], 0xfffffffd
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x438], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x43c], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100370be
mov esp, ebp
pop ebp
ret