Function at 0x100e8550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10250d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x1c], vtable.WM::GMFile.0
mov dword [ebp - 0x18], 0xffffffff
push 0x80
push 2
push 3
push 0x40000000
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push dword [ebp + 0xc]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::Create_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int__unsigned_int__unsigned_int_
test al, al
je 0x100e87d5
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
mov ebx, dword [ebp + 8]
push ecx
push 2
mov eax, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov esi, dword [ebx + 0x414]
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0xc], 0
call eax
test al, al
je 0x100e87d5
cmp dword [ebp - 0x10], 2
jne 0x100e87d5
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push ecx
push 2
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 1
mov eax, dword [eax + 8]
push ecx
lea ecx, [ebp - 0x1c]
call eax
test al, al
je 0x100e87d5
cmp dword [ebp - 0x10], 2
jne 0x100e87d5
movzx eax, si
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp + 0xc], eax
lea ecx, [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
push 2
push ecx
lea ecx, [ebp - 0x1c]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x100e87d5
cmp dword [ebp - 0x10], 2
jne 0x100e87d5
mov edx, dword [ebx + 0x414]
mov dword [ebp + 0xc], 0
test edx, edx
je 0x100e874c
add ebx, 0x41c
mov dword [ebp - 0x10], ebx
mov al, byte [ebx - 4]
mov cl, byte [ebx]
mov byte [ebp - 0x2c], al
mov byte [ebp - 0x2b], cl
mov byte [ebp - 0x29], 0
cmp al, cl
jne 0x100e8674
test cl, cl
jne 0x100e8674
mov dword [ebp - 0x28], 1
jmp 0x100e86a0
mov eax, dword [ebx + 0x10]
movzx ecx, word [eax + 0xc]
mov word [ebp - 0x28], cx
movzx eax, word [eax + 0xe]
mov esi, eax
mov word [ebp - 0x26], ax
imul esi, ecx
cmp esi, 8
jl 0x100e8697
mov byte [ebp - 0x2a], 0
jmp 0x100e86a0
mov al, 1
mov ecx, esi
shl al, cl
mov byte [ebp - 0x2a], al
mov eax, dword [ebx + 0xc]
xor esi, esi
mov ecx, dword [ebp + 0xc]
xor edi, edi
shl edx, 4
xor ebx, ebx
add edx, 6
mov dword [ebp - 0x24], eax
cmp ecx, 2
jb 0x100e86e1
mov eax, dword [ebp + 8]
add ecx, 0xfffffffe
shr ecx, 1
add eax, 0x448
inc ecx
lea ebx, [ecx + ecx]
nop dword [eax + eax]
add esi, dword [eax - 0x20]
lea eax, [eax + 0x40]
add edi, dword [eax - 0x40]
sub ecx, 1
jne 0x100e86d0
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jae 0x100e86f2
mov eax, dword [ebp + 8]
shl ebx, 5
add edx, dword [ebx + eax + 0x428]
lea eax, [edi + esi]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x100e87d8
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x10
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100e87d5
cmp dword [ebp - 0x14], 0x10
jne 0x100e87d5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
add dword [ebp - 0x10], 0x20
inc ebx
mov dword [ebp + 0xc], ebx
mov edx, dword [eax + 0x414]
cmp ebx, edx
mov ebx, dword [ebp - 0x10]
jb 0x100e8654
mov ebx, eax
xor edi, edi
test edx, edx
je 0x100e87ce
lea esi, [ebx + 0x424]
nop dword [eax + eax]
cmp dword [esi - 8], 0
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x14]
mov dword [ebp + 0xc], eax
jne 0x100e877f
cmp dword [esi - 0xc], 0
jne 0x100e877f
mov eax, dword [esi]
cmp dword [eax], 0x474e5089
je 0x100e8786
mov dword [ecx + 0x14], 0
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
test ecx, ecx
je 0x100e87d5
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x100e87d8
push 0
lea edx, [ebp - 0x14]
push edx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100e87d5
mov eax, dword [ebp - 0x14]
cmp ebx, eax
jne 0x100e87d5
cmp eax, dword [esi + 4]
jne 0x100e87d5
mov eax, dword [esi + 8]
inc edi
mov ebx, dword [ebp + 8]
add esi, 0x20
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
cmp edi, dword [ebx + 0x414]
jb 0x100e8760
mov eax, dword [ebp - 0x18]
mov bl, 1
jmp 0x100e87da
mov eax, dword [ebp - 0x18]
xor bl, bl
mov dword [ebp - 0x1c], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x100e87ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8