Function at 0x40ea30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d8f8
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4831a0]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa0], ecx
call fcn.00402d00
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00402cd0
add esp, 8
movzx edx, al
test edx, edx
je 0x40ea99
lea eax, [ebp + 8]
push eax
call fcn.00402b30
add esp, 4
jmp 0x40ed74
mov ecx, dword [ebp - 0xa0]
call fcn.00402cc0
test eax, eax
je 0x40eaec
mov ecx, dword [ebp - 0xa0]
call fcn.00402cc0
mov esi, eax
mov ecx, dword [ebp - 0xa0]
call fcn.004011f0
cmp esi, eax
jae 0x40eaec
lea ecx, [ebp + 8]
push ecx
call fcn.00402c00
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0xa0]
call fcn.00402b20
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40ed74
mov edx, dword [ebp - 0xa0]
cmp dword [edx + 0x4c], 0
jne 0x40eb07
call fcn.00402d00
jmp 0x40ed74
mov eax, dword [ebp - 0xa0]
cmp dword [eax + 0x3c], 0
jne 0x40eb62
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.00402c00
add esp, 4
movzx ecx, al
push ecx
call fcn.0040e7a0
add esp, 8
movzx edx, al
test edx, edx
je 0x40eb47
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
jmp 0x40eb52
call fcn.00402d00
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
jmp 0x40ed74
mov dword [ebp - 0x10], 8
lea ecx, [ebp + 8]
push ecx
call fcn.00402c00
add esp, 4
mov byte [ebp - 0x15], al
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0040d070
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
lea ebx, [ebp - 0x4c]
lea edi, [ebp - 0x3c]
call fcn.00405d10
mov ecx, eax
call fcn.0040d560
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00403220
add esi, eax
push esi
lea ebx, [ebp - 0x54]
lea edi, [ebp - 0x3c]
call fcn.00405d10
mov ecx, eax
call fcn.0040d560
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x15]
push edx
mov eax, dword [ebp - 0xa0]
add eax, 0x44
push eax
mov ecx, dword [ebp - 0xa0]
mov ecx, dword [ecx + 0x3c]
call fcn.0040f880
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jl 0x40ed44
cmp dword [ebp - 0xa8], 1
jle 0x40ec13
cmp dword [ebp - 0xa8], 3
je 0x40ecf3
jmp 0x40ed44
lea ebx, [ebp - 0x5c]
lea edi, [ebp - 0x3c]
call fcn.00405d10
mov ecx, eax
call fcn.0040d560
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x40], edx
je 0x40ec7e
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea ebx, [ebp - 0x64]
lea edi, [ebp - 0x3c]
call fcn.00405d10
mov ecx, eax
call fcn.0040d560
push eax
call fcn.00416b0c
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x40ec7e
call fcn.00402d00
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004037e0
mov eax, dword [ebp - 0x68]
jmp 0x40ed74
mov eax, dword [ebp - 0xa0]
mov byte [eax + 0x41], 1
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x15]
cmp ecx, edx
je 0x40ecaf
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004037e0
mov eax, dword [ebp - 0x6c]
jmp 0x40ed74
cmp dword [ebp - 0x40], 0
jbe 0x40ecb7
jmp 0x40ecf1
lea ecx, [ebp - 0x3c]
call fcn.00403220
cmp eax, 0x20
jae 0x40ecd2
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00403160
jmp 0x40ecf1
call fcn.00402d00
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004037e0
mov eax, dword [ebp - 0x70]
jmp 0x40ed74
jmp 0x40ed60
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 0x4c]
push edx
movzx eax, byte [ebp - 0x15]
push eax
call fcn.0040e7a0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40ed1c
mov edx, dword [ebp + 8]
mov dword [ebp - 0xac], edx
jmp 0x40ed27
call fcn.00402d00
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004037e0
mov eax, dword [ebp - 0x74]
jmp 0x40ed74
call fcn.00402d00
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004037e0
mov eax, dword [ebp - 0x78]
jmp 0x40ed74
jmp 0x40eb8b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0041230e
mov esp, ebp
pop ebp
ret 4