Function at 0x47ec50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4e44b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x3c], 0
mov dword [ebp - 0x24], ecx
je 0x47ef24
cmp byte [ecx + 0x41], 0
je 0x47ef24
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x47ec95
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495cb8
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
cmp ecx, 0x10
mov byte [ebp - 0x1c], 0
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 8
jae 0x47ecb8
lea eax, [ebp - 0x1c]
push ebx
push esi
mov byte [eax + 8], 0
push edi
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x47edd2
test eax, eax
mov ebx, eax
mov dword [ebp - 0x28], ebx
je 0x47ecf8
cmp edx, 0x10
mov ecx, eax
jae 0x47ece1
lea ecx, [ebp - 0x1c]
cmp ecx, ebx
ja 0x47ecf8
cmp edx, 0x10
mov ecx, eax
jae 0x47ecef
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add ecx, esi
cmp ebx, ecx
jbe 0x47ed03
call fcn.00496100
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffe
je 0x47ed29
cmp edx, 0x10
mov ecx, eax
jae 0x47ed15
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add ecx, esi
cmp ebx, ecx
jb 0x47ed29
call fcn.00496100
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
cmp edx, 0x10
mov edi, dword [ebp - 0xc]
jb 0x47eddd
test eax, eax
mov esi, eax
je 0x47ed5f
cmp edx, 0x10
mov ecx, eax
jae 0x47ed45
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x47ed5f
cmp edx, 0x10
mov ecx, eax
jae 0x47ed53
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
add ecx, ebx
cmp esi, ecx
mov ebx, dword [ebp - 0x28]
jbe 0x47ed6a
call fcn.00496100
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffe
je 0x47ed88
cmp edx, 0x10
jae 0x47ed7a
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add eax, edx
cmp esi, eax
jb 0x47ed88
call fcn.00496100
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
add ebx, edi
push ebx
push esi
add eax, 0x44
push eax
call edx
sub eax, 0
je 0x47ede5
sub eax, 1
je 0x47edec
sub eax, 2
lea ecx, [ebp - 0x20]
je 0x47ef0c
call fcn.004020d0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495cb8
mov esp, ebp
pop ebp
ret
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
jmp 0x47ecd7
lea esi, [ebp - 0x1c]
jmp 0x47ed3b
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x41], 0
mov edx, dword [ebp - 8]
cmp edx, 0x10
mov eax, dword [ebp - 0x1c]
jb 0x47eef1
test eax, eax
mov esi, eax
je 0x47ee22
cmp edx, 0x10
mov ecx, eax
jae 0x47ee0b
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x47ee22
cmp edx, 0x10
mov ecx, eax
jae 0x47ee19
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
add ecx, edi
cmp esi, ecx
jbe 0x47ee2d
call fcn.00496100
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffe
je 0x47ee53
cmp edx, 0x10
mov ecx, eax
jae 0x47ee3f
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
add ecx, edi
cmp esi, ecx
jb 0x47ee53
call fcn.00496100
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
sub edi, esi
je 0x47eed0
cmp edx, 0x10
jb 0x47eef9
test eax, eax
mov esi, eax
je 0x47ee8a
cmp edx, 0x10
mov ecx, eax
jae 0x47ee73
lea ecx, [ebp - 0x1c]
cmp ecx, esi
ja 0x47ee8a
cmp edx, 0x10
mov ecx, eax
jae 0x47ee81
lea ecx, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
add ecx, ebx
cmp esi, ecx
jbe 0x47ee95
call fcn.00496100
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
cmp ecx, 0xfffffffe
je 0x47eeb3
cmp edx, 0x10
jae 0x47eea5
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add eax, edx
cmp esi, eax
jb 0x47eeb3
call fcn.00496100
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.00497223
add esp, 0x10
cmp edi, eax
jne 0x47ef01
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + 0x41], 0
je 0x47ef09
test edi, edi
jne 0x47ecc5
push edi
push 8
lea ecx, [ebp - 0x20]
call fcn.0040abd0
jmp 0x47ecbf
lea esi, [ebp - 0x1c]
jmp 0x47ee01
lea esi, [ebp - 0x1c]
jmp 0x47ee69
lea ecx, [ebp - 0x20]
jmp 0x47edba
lea ecx, [ebp - 0x20]
call fcn.004020d0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495cb8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.00495cb8
mov esp, ebp
pop ebp
ret