Function at 0x11075790
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0xc]
push ebp
push esi
push edi
push 0
push eax
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov ebp, ecx
push eax
push ebp
mov dword [esp + 0x38], ebp
call ebx
mov esi, dword [0x110fb790]
mov edi, dword [esi]
cmp edi, esi
je 0x1107586e
lea esp, [esp]
lea eax, [edi + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.11046570
mov eax, dword [esp + 0x28]
cmp eax, dword [0x110e5880]
jne 0x11075860
lea ecx, [edi + 8]
call fcn.11074ba0
and eax, dword [0x110fb7a4]
mov ecx, dword [0x110fb798]
lea edx, [eax*8]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x1107582b
cmp dword [ecx], edi
jne 0x11075823
mov dword [ecx], esi
mov ecx, dword [0x110fb798]
mov eax, dword [0x110fb790]
mov dword [edx + ecx + 4], eax
jmp 0x11075833
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x11075833
cmp dword [ecx], edi
jne 0x11075833
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov edx, 1
mov esi, dword [edi]
push 0x18
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, edi
dec dword [0x110fb794]
call fcn.11004ac0
mov edi, esi
mov esi, dword [0x110fb790]
jmp 0x11075866
inc dword [esp + 0x10]
mov edi, dword [edi]
cmp edi, esi
jne 0x110757d0
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push ebp
call ebx
cmp dword [esp + 0x10], 0
je 0x110759be
mov eax, dword [0x110fb790]
mov edi, dword [eax]
mov dword [esp + 0x28], edi
cmp edi, eax
je 0x110759be
lea ecx, [ecx]
lea eax, [edi + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.11046570
mov eax, dword [esp + 0x2c]
cmp eax, dword [0x110e5880]
je 0x110759ac
push 0
lea ecx, [esp + 0x18]
push ecx
lea esi, [eax + 0xc]
lea eax, [esi + 4]
mov dword [esp + 0x24], esi
push 4
push eax
push ebp
mov dword [esp + 0x44], eax
call ebx
cmp word [esi + 4], 3
lea eax, [esi + 4]
push 0
jne 0x1107590c
lea esi, [eax + 4]
lea eax, [esp + 0x18]
push eax
push 4
push esi
push ebp
call ebx
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
push dword [esi]
push dword [eax + 8]
push ebp
call ebx
mov esi, dword [esp + 0x1c]
jmp 0x1107591a
lea ecx, [esp + 0x18]
add eax, 8
push ecx
push 4
push eax
push ebp
call ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push ebp
call ebx
mov ecx, dword [esi + 0x34]
mov eax, 0x2aaaaaab
sub ecx, dword [esi + 0x30]
imul ecx
push 0
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x40]
push eax
push ebp
call ebx
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 0x30]
cmp esi, dword [eax + 0x34]
je 0x110759ac
mov edi, eax
push 0
lea eax, [esp + 0x24]
push eax
push 4
push esi
push ebp
call ebx
cmp word [esi], 3
lea eax, [esp + 0x20]
push 0
push eax
push 4
jne 0x11075999
lea ebp, [esi + 4]
push ebp
push dword [esp + 0x34]
call ebx
push 0
lea eax, [esp + 0x24]
push eax
push dword [ebp]
mov ebp, dword [esp + 0x30]
push dword [esi + 8]
jmp 0x1107599d
lea eax, [esi + 8]
push eax
push ebp
call ebx
add esi, 0xc
cmp esi, dword [edi + 0x34]
jne 0x11075960
mov edi, dword [esp + 0x28]
mov edi, dword [edi]
mov dword [esp + 0x28], edi
cmp edi, dword [0x110fb790]
jne 0x110758a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret