Function at 0x40eb90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426b48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x435300]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x435300]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
cmp dword [ecx + 0x3c], 0
mov dword [esp + 0x10], ecx
je 0x40ee90
cmp byte [ecx + 0x42], 0
je 0x40ee90
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffff
call edx
movzx eax, ax
cmp ax, 0xffff
je 0x40ee83
lea esi, [esp + 0x1c]
call fcn.0040e4d0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x40ed24
test eax, eax
mov ebx, eax
mov dword [esp + 0x14], ebx
je 0x40ec48
cmp edx, 0x10
mov ecx, eax
jae 0x40ec2f
lea ecx, [esp + 0x20]
cmp ecx, ebx
ja 0x40ec48
cmp edx, 0x10
mov ecx, eax
jae 0x40ec3e
lea ecx, [esp + 0x20]
mov esi, dword [esp + 0x30]
add ecx, esi
cmp ebx, ecx
jbe 0x40ec55
call fcn.0041101d
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
cmp ecx, 0xfffffffe
je 0x40ec80
cmp edx, 0x10
mov ecx, eax
jae 0x40ec69
lea ecx, [esp + 0x20]
mov esi, dword [esp + 0x30]
add ecx, esi
cmp ebx, ecx
jb 0x40ec80
call fcn.0041101d
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp edx, 0x10
mov edi, dword [esp + 0x30]
jb 0x40ed31
test eax, eax
mov esi, eax
je 0x40ecbb
cmp edx, 0x10
mov ecx, eax
jae 0x40ec9e
lea ecx, [esp + 0x20]
cmp ecx, esi
ja 0x40ecbb
cmp edx, 0x10
mov ecx, eax
jae 0x40ecad
lea ecx, [esp + 0x20]
mov ebx, dword [esp + 0x30]
add ecx, ebx
cmp esi, ecx
mov ebx, dword [esp + 0x14]
jbe 0x40ecc8
call fcn.0041101d
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
cmp ecx, 0xfffffffe
je 0x40ece9
cmp edx, 0x10
jae 0x40ecda
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x30]
add eax, edx
cmp esi, eax
jb 0x40ece9
call fcn.0041101d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
add ebx, edi
push ebx
push esi
add eax, 0x44
push eax
call edx
sub eax, 0
je 0x40ed3a
sub eax, 1
je 0x40ed42
sub eax, 2
lea ecx, [esp + 0x1c]
jne 0x40ee7e
jmp 0x40ee8b
lea ebx, [esp + 0x20]
mov dword [esp + 0x14], ebx
jmp 0x40ec24
lea esi, [esp + 0x20]
jmp 0x40ec93
mov eax, dword [esp + 0x10]
mov byte [eax + 0x42], 0
mov edx, dword [esp + 0x34]
cmp edx, 0x10
mov eax, dword [esp + 0x20]
jb 0x40ee68
test eax, eax
mov esi, eax
je 0x40ed7d
cmp edx, 0x10
mov ecx, eax
jae 0x40ed64
lea ecx, [esp + 0x20]
cmp ecx, esi
ja 0x40ed7d
cmp edx, 0x10
mov ecx, eax
jae 0x40ed73
lea ecx, [esp + 0x20]
mov edi, dword [esp + 0x30]
add ecx, edi
cmp esi, ecx
jbe 0x40ed8a
call fcn.0041101d
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
cmp ecx, 0xfffffffe
je 0x40edb5
cmp edx, 0x10
mov ecx, eax
jae 0x40ed9e
lea ecx, [esp + 0x20]
mov edi, dword [esp + 0x30]
add ecx, edi
cmp esi, ecx
jb 0x40edb5
call fcn.0041101d
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
sub edi, esi
je 0x40ee42
cmp edx, 0x10
jb 0x40ee71
test eax, eax
mov esi, eax
je 0x40edf4
cmp edx, 0x10
mov ecx, eax
jae 0x40eddb
lea ecx, [esp + 0x20]
cmp ecx, esi
ja 0x40edf4
cmp edx, 0x10
mov ecx, eax
jae 0x40edea
lea ecx, [esp + 0x20]
mov ebx, dword [esp + 0x30]
add ecx, ebx
cmp esi, ecx
jbe 0x40ee01
call fcn.0041101d
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
cmp ecx, 0xfffffffe
je 0x40ee22
cmp edx, 0x10
jae 0x40ee13
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x30]
add eax, edx
cmp esi, eax
jb 0x40ee22
call fcn.0041101d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.00412363
add esp, 0x10
cmp edi, eax
jne 0x40ee7a
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x42], 0
je 0x40ee87
test edi, edi
jne 0x40ec11
push edi
mov eax, 8
lea edi, [esp + 0x20]
call fcn.00407430
jmp 0x40ec09
lea esi, [esp + 0x20]
jmp 0x40ed59
lea esi, [esp + 0x20]
jmp 0x40edd0
lea ecx, [esp + 0x1c]
call fcn.00403160
xor al, al
jmp 0x40ee92
lea ecx, [esp + 0x1c]
call fcn.00403160
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00410b9c
mov esp, ebp
pop ebp
ret