Function at 0x47d5e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x4c6748
push eax
mov dword fs:[0], esp
sub esp, 0x28
cmp dword [ecx + 0x3c], 0
push ebx
push esi
push edi
je 0x47d8f1
cmp byte [ecx + 0x41], 0
je 0x47d8f1
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x47d8d2
mov ecx, 0xf
xor eax, eax
cmp ecx, 0x10
mov byte [esp + 0x18], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 8
jae 0x47d653
lea eax, [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
cmp edx, 0x10
jb 0x47d778
test eax, eax
mov ebx, eax
mov dword [esp + 0xc], ebx
je 0x47d69e
cmp edx, 0x10
mov ecx, eax
jae 0x47d685
lea ecx, [esp + 0x18]
cmp ecx, ebx
ja 0x47d69e
cmp edx, 0x10
mov ecx, eax
jae 0x47d694
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x28]
add ecx, esi
cmp ebx, ecx
jbe 0x47d6ab
call fcn.0049458d
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
cmp ecx, 0xfffffffe
je 0x47d6d6
cmp edx, 0x10
mov ecx, eax
jae 0x47d6bf
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x28]
add ecx, esi
cmp ebx, ecx
jb 0x47d6d6
call fcn.0049458d
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp edx, 0x10
mov edi, dword [esp + 0x28]
jb 0x47d785
test eax, eax
mov esi, eax
je 0x47d711
cmp edx, 0x10
mov ecx, eax
jae 0x47d6f4
lea ecx, [esp + 0x18]
cmp ecx, esi
ja 0x47d711
cmp edx, 0x10
mov ecx, eax
jae 0x47d703
lea ecx, [esp + 0x18]
mov ebx, dword [esp + 0x28]
add ecx, ebx
cmp esi, ecx
mov ebx, dword [esp + 0xc]
jbe 0x47d71e
call fcn.0049458d
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
cmp ecx, 0xfffffffe
je 0x47d73f
cmp edx, 0x10
jae 0x47d730
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x28]
add eax, edx
cmp esi, eax
jb 0x47d73f
call fcn.0049458d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 8]
add ebx, edi
push ebx
push esi
add eax, 0x44
push eax
call edx
sub eax, 0
je 0x47d78e
sub eax, 1
je 0x47d795
sub eax, 2
lea ecx, [esp + 0x14]
jne 0x47d8cd
jmp 0x47d8ec
lea ebx, [esp + 0x18]
mov dword [esp + 0xc], ebx
jmp 0x47d67a
lea esi, [esp + 0x18]
jmp 0x47d6e9
mov eax, dword [ebp + 8]
mov byte [eax + 0x41], 0
mov edx, dword [esp + 0x2c]
cmp edx, 0x10
mov eax, dword [esp + 0x18]
jb 0x47d8b7
test eax, eax
mov esi, eax
je 0x47d7d0
cmp edx, 0x10
mov ecx, eax
jae 0x47d7b7
lea ecx, [esp + 0x18]
cmp ecx, esi
ja 0x47d7d0
cmp edx, 0x10
mov ecx, eax
jae 0x47d7c6
lea ecx, [esp + 0x18]
mov edi, dword [esp + 0x28]
add ecx, edi
cmp esi, ecx
jbe 0x47d7dd
call fcn.0049458d
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
cmp ecx, 0xfffffffe
je 0x47d808
cmp edx, 0x10
mov ecx, eax
jae 0x47d7f1
lea ecx, [esp + 0x18]
mov edi, dword [esp + 0x28]
add ecx, edi
cmp esi, ecx
jb 0x47d808
call fcn.0049458d
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
sub edi, esi
je 0x47d894
cmp edx, 0x10
jb 0x47d8c0
test eax, eax
mov esi, eax
je 0x47d847
cmp edx, 0x10
mov ecx, eax
jae 0x47d82e
lea ecx, [esp + 0x18]
cmp ecx, esi
ja 0x47d847
cmp edx, 0x10
mov ecx, eax
jae 0x47d83d
lea ecx, [esp + 0x18]
mov ebx, dword [esp + 0x28]
add ecx, ebx
cmp esi, ecx
jbe 0x47d854
call fcn.0049458d
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
cmp ecx, 0xfffffffe
je 0x47d875
cmp edx, 0x10
jae 0x47d866
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x28]
add eax, edx
cmp esi, eax
jb 0x47d875
call fcn.0049458d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.00494974
add esp, 0x10
cmp edi, eax
jne 0x47d8c9
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x41], 0
je 0x47d8e8
test edi, edi
jne 0x47d667
push edi
lea eax, [edi + 8]
lea edi, [esp + 0x18]
call fcn.0041ee70
jmp 0x47d65f
lea esi, [esp + 0x18]
jmp 0x47d7ac
lea esi, [esp + 0x18]
jmp 0x47d823
lea ecx, [esp + 0x14]
call fcn.004040a0
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x14]
call fcn.004040a0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4