Function at 0x47a38b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x5065d0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x103
lea eax, [esp + 0x35]
push 0
push eax
mov dword [esp + 0x28], edi
mov byte [esp + 0x3c], 0
call fcn.004ab5d0
add esp, 0xc
mov edx, edi
call fcn.00476b3a
test eax, eax
je 0x47a3dd
xor eax, eax
jmp 0x47a64f
and dword [esp + 0x14], 0
mov ebx, 0x104
push edi
mov ecx, ebx
lea eax, [esp + 0x34]
call fcn.00476b6c
pop ecx
mov edx, eax
call fcn.00477617
cmp byte [esp + 0x30], 0x5c
jne 0x47a492
cmp byte [esp + 0x31], 0x5c
jne 0x47a492
cmp dword [ebp + 0x14], 0
je 0x47a431
call fcn.0047a2e2
cmp eax, 0xc
jge 0x47a431
xor ecx, ecx
mov edx, edi
call fcn.0041abf9
cmp eax, 0x100000
jbe 0x47a492
mov edx, edi
lea ecx, [esp + 0x30]
call fcn.0045ad26
cmp dword [ebp + 0x14], 0
je 0x47a477
call fcn.0041a629
test eax, eax
je 0x47a477
push 0
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00419fc7
add esp, 0xc
test eax, eax
jne 0x47a477
lea eax, [esp + 0x30]
call fcn.0041a140
push edi
mov ecx, ebx
lea eax, [esp + 0x34]
call fcn.00476b6c
pop ecx
jmp 0x47a497
lea eax, [esp + 0x30]
push edi
push eax
call fcn.004ab3bf
test eax, eax
pop ecx
pop ecx
je 0x47a497
mov dword [esp + 0x14], 1
jmp 0x47a497
and dword [esp + 0x14], 0
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp + 0x14], edi
mov dword [esp + 0x24], ebx
je 0x47a4c4
xor ecx, ecx
lea edx, [esp + 0x30]
call fcn.0041abf9
test eax, eax
jbe 0x47a4b8
mov dword [esp + 0x24], edi
push 0x504
mov edx, 0x4ce0ac
jmp 0x47a4ce
push 0x506
mov edx, 0x4cbe64
push str..StringList.c
lea ecx, [esp + 0x38]
call fcn.0041c646
cmp eax, edi
pop ecx
mov dword [esp + 0x14], eax
pop ecx
jne 0x47a4fe
cmp dword [esp + 0x14], edi
je 0x47a3d6
lea eax, [esp + 0x30]
call fcn.0041a140
jmp 0x47a3d6
push esi
call fcn.0047b11e
test eax, eax
pop ecx
jne 0x47a514
mov ecx, dword [esp + 0x10]
call fcn.0041ca73
jmp 0x47a4e6
lea ecx, [esi + 0x34]
mov eax, 0x1b58
call fcn.0041edf6
call fcn.0049c471
cmp dword [ebp + 0x10], edi
mov dword [esp + 0x28], eax
je 0x47a534
mov eax, dword [esi + 0xc]
jmp 0x47a536
xor eax, eax
cmp eax, dword [esi + 4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
jge 0x47a618
shl eax, 4
mov edi, eax
mov eax, dword [esi]
xor ebx, ebx
cmp dword [edi + eax], ebx
je 0x47a604
cmp dword [esp + 0x2c], ebx
je 0x47a56e
cmp dword [ebp + 0x14], ebx
je 0x47a583
cmp dword [esp + 0x24], ebx
jne 0x47a583
push dword [esp + 0x10]
push 1
push 1
push 0x4cb20c
call fcn.004aa5f2
add esp, 0x10
mov eax, dword [esi]
push dword [eax + edi]
mov dword [esp + 0x30], ebx
call fcn.004aa880
mov ebx, eax
test ebx, ebx
pop ecx
jle 0x47a5b2
mov eax, dword [esi]
push dword [eax + edi]
push 0x4c943c
push dword [esp + 0x18]
call fcn.0046da2d
add esp, 0xc
cmp eax, ebx
jl 0x47a5b6
inc dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push 0x19
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x47a604
call fcn.0049c471
sub eax, dword [esp + 0x28]
cmp eax, 0x7d0
jbe 0x47a604
mov eax, esi
call fcn.0047b14b
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0047b11e
test eax, eax
pop ecx
je 0x47a664
mov eax, 0x1b58
lea ecx, [esi + 0x34]
call fcn.0041edf6
call fcn.0049c471
mov dword [esp + 0x28], eax
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add edi, 0x10
cmp eax, dword [esi + 4]
jl 0x47a550
mov eax, esi
call fcn.0047b14b
mov ecx, dword [esp + 0x10]
call fcn.0041ca73
cmp dword [esp + 0x14], 0
je 0x47a64b
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
call fcn.00419fc7
add esp, 0xc
lea eax, [esp + 0x30]
call fcn.0041a140
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004aaeb5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
call fcn.0041ca73
cmp dword [esp + 0x14], 0
je 0x47a64b
jmp 0x47a4f0