Function at 0x10002570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100231e0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x1002a100]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x7c]
xor edi, edi
cmp eax, edi
je 0x100025c1
cmp dword [eax + 0x18], edi
je 0x100025c1
push eax
mov dword [esp + 0x28], eax
call fcn.100095f0
add esp, 4
mov byte [esp + 0x28], 1
jmp 0x100025ca
mov dword [esp + 0x24], edi
mov byte [esp + 0x28], 0
mov dword [esp + 0x70], edi
fld qword [0x100271d0]
fstp qword [esp + 0x34]
mov dword [esp + 0x2c], vtable.UMC::MediaData.0
fldz
mov dword [esp + 0x4c], edi
fstp qword [esp + 0x3c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov byte [esp + 0x70], 1
cmp byte [ebx + 0x71], 0
jne 0x10002651
mov eax, dword [ebx + 4]
test dword [eax + 8], 0x100
je 0x10002620
call fcn.10007710
jmp 0x1000264d
mov esi, dword [eax + 0x14]
call fcn.10005560
mov eax, dword [ebx + 4]
mov dword [ebx + 0x1178], edi
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x14]
push eax
push str.xxxxmdat
mov dword [esp + 0x1c], 8
call edx
mov byte [ebx + 0x71], 1
mov eax, dword [ebx + 0x1190]
mov esi, dword [ebx + 8]
push eax
call fcn.100076b0
mov edi, eax
cmp edi, 0xffffffff
je 0x10002869
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x2c]
push eax
call edx
xor esi, esi
cmp eax, esi
jne 0x10002811
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [edi*8]
sub eax, edi
add eax, eax
add eax, eax
cmp dword [eax + ecx], 2
mov dword [esp + 0x1c], eax
jne 0x100026e8
mov esi, dword [ebp + 8]
lea ebx, [esp + 0x2c]
call fcn.10007be0
test al, al
je 0x100026ca
mov eax, esi
call fcn.10007970
mov esi, eax
test esi, esi
jne 0x100028e7
mov eax, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.10001f40
mov esi, eax
test esi, esi
jne 0x100028e7
mov ebx, dword [ebp + 8]
jmp 0x100026fe
push edi
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.100020f0
mov esi, eax
test esi, esi
jne 0x100028e7
mov esi, dword [esp + 0x14]
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
test eax, eax
je 0x100027ee
mov ecx, dword [ebx + 4]
test dword [ecx + 8], 0x100
je 0x10002796
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + eax], 1
mov edx, dword [ebx + 0x1188]
mov dword [esp + 0x14], edx
jne 0x1000274c
cmp byte [ebx + 0x98], 0
jne 0x1000274c
mov edx, dword [ebx + 0x118c]
mov eax, dword [edx + edi*4]
mov dword [esp + 0x14], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
mov edx, dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x14]
mov edx, eax
xor eax, eax
test ecx, ecx
je 0x10002790
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x10002790
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jmp 0x100027db
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
mov edx, dword [esi]
add eax, 0x18
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x14]
push eax
mov eax, dword [edx]
call eax
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x10002935
mov ecx, dword [esp + 0x18]
add dword [ebx + 0x1178], ecx
push edi
push esi
mov esi, ebx
call fcn.10001bf0
cmp dword [esp + 0x4c], 0
je 0x100027fd
mov dword [esp + 0x48], 0
mov edx, dword [ebx + 0x10]
mov ecx, dword [edx + edi*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x2c]
push edx
call eax
jmp 0x1000284f
cmp eax, 0xfffffc81
jne 0x1000282e
mov edx, dword [ebx + 0x1190]
lea ecx, [edi + edi*2]
shl ecx, 4
mov dword [ecx + edx + 0x28], 1
jmp 0x1000284f
cmp eax, 0xfffffc1c
jne 0x1000286b
cmp byte [ebp + 0xc], 0
je 0x1000286b
mov ecx, dword [ebx + 0x1190]
lea eax, [edi + edi*2]
shl eax, 4
mov dword [eax + ecx + 0x28], 1
mov edx, dword [ebx + 0x1190]
mov esi, dword [ebx + 8]
push edx
call fcn.100076b0
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000266b
xor esi, esi
mov byte [esp + 0x70], 0
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x2c], vtable.UMC::MediaData.0
je 0x1000288f
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x1000288f
push eax
call fcn.10010874
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov ecx, dword [esp + 0x24]
cmp ecx, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], esi
je 0x100028d0
mov eax, dword [ecx + 0x18]
cmp eax, esi
je 0x100028d0
cmp byte [esp + 0x28], 0
je 0x100028d0
cmp eax, esi
je 0x100028d0
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 0
call fcn.100089c0
mov dword [esp + 0x70], 0xffffffff
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x1000291e
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x1000291e
cmp byte [esp + 0x28], 0
je 0x1000291e
test eax, eax
je 0x1000291e
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 0
call fcn.100089c0
mov dword [esp + 0x70], 0xffffffff
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x1000296c
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x1000296c
cmp byte [esp + 0x28], 0
je 0x1000296c
test eax, eax
je 0x1000296c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8