Function at 0x40e910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0af1
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
mov edi, dword [ebp + 8]
jne 0x40e950
xor al, al
jmp 0x40ec74
mov ecx, dword [edi + 0x4ac]
mov eax, dword [edi + 0x4a8]
cmp ecx, dword [ebx + 0x44]
jg 0x40e968
jl 0x40e949
cmp eax, dword [ebx + 0x40]
jb 0x40e949
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push ecx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00451bf0
add esp, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x40e99a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040d920
mov esi, dword [eax + 0x14]
mov ecx, esi
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 1
jb 0x40e9d8
lea ecx, [edx + 1]
mov dword [eax + 0x10], ecx
cmp esi, 0x10
jb 0x40e9bf
mov eax, dword [eax]
push 1
lea esi, [eax + edx]
push 0x4ea3f8
push esi
call fcn.004a5980
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40e9f5
push 1
push 0x4ea3f8
mov byte [ebp - 0x8c], 0
mov ecx, eax
push dword [ebp - 0x8c]
push 1
call fcn.0040e0a0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40ea2d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ea23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec92
push edx
push ecx
call fcn.0048d8eb
add esp, 8
lea eax, [edi + 0x8b0]
push eax
lea ecx, [ebp - 0x88]
call fcn.00408080
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040eec0
add esi, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x40ea57
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x28]
call fcn.0040d920
mov esi, dword [eax + 0x14]
mov ecx, esi
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 1
jb 0x40ea95
lea ecx, [edx + 1]
mov dword [eax + 0x10], ecx
cmp esi, 0x10
jb 0x40ea7c
mov eax, dword [eax]
push 1
lea esi, [eax + edx]
push 0x4ea3f8
push esi
call fcn.004a5980
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40eab2
push 1
push 0x4ea3f8
mov byte [ebp - 0x8c], 0
mov ecx, eax
push dword [ebp - 0x8c]
push 1
call fcn.0040e0a0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x88]
push eax
call fcn.0048dbcc
push edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
call fcn.00408080
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0040eec0
add esi, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x40eafb
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x28]
call fcn.0040d920
mov esi, dword [eax + 0x14]
mov ecx, esi
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 1
jb 0x40eb39
lea ecx, [edx + 1]
mov dword [eax + 0x10], ecx
cmp esi, 0x10
jb 0x40eb20
mov eax, dword [eax]
push 1
lea esi, [eax + edx]
push 0x4ea3f8
push esi
call fcn.004a5980
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40eb56
push 1
push 0x4ea3f8
mov byte [ebp - 0x8c], 0
mov ecx, eax
push dword [ebp - 0x8c]
push 1
call fcn.0040e0a0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x88]
push eax
call fcn.0048dbcc
lea eax, [edi + 0x24a]
mov byte [ebp - 4], 0
push eax
lea ecx, [ebp - 0x88]
call fcn.00408080
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0040eec0
add esi, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x40eba5
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x28]
call fcn.0040d920
mov esi, dword [eax + 0x14]
mov ecx, esi
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 2
jb 0x40ebe3
lea ecx, [edx + 2]
mov dword [eax + 0x10], ecx
cmp esi, 0x10
jb 0x40ebca
mov eax, dword [eax]
push 2
lea esi, [eax + edx]
push 0x4ea3fc
push esi
call fcn.004a5980
add esp, 0xc
mov byte [esi + 2], 0
jmp 0x40ec00
push 2
push 0x4ea3fc
mov byte [ebp - 0x8c], 0
mov ecx, eax
push dword [ebp - 0x8c]
push 2
call fcn.0040e0a0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x88]
push eax
call fcn.0048dbcc
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x90]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40ec72
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ec68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec97
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 4
call fcn.004b0023
call fcn.004b0023
int3