Function at 0x47b262
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x5025d0]
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.004a8c80
add esp, 0xc
mov edx, edi
call fcn.00477a16
test eax, eax
je 0x47b2b4
xor eax, eax
jmp 0x47b526
and dword [esp + 0x14], 0
mov ebx, 0x104
push edi
mov ecx, ebx
lea eax, [esp + 0x34]
call fcn.00477a48
pop ecx
mov edx, eax
call fcn.00478435
cmp byte [esp + 0x30], 0x5c
jne 0x47b369
cmp byte [esp + 0x31], 0x5c
jne 0x47b369
cmp dword [ebp + 0x14], 0
je 0x47b308
call fcn.0047b1b9
cmp eax, 0xc
jge 0x47b308
xor ecx, ecx
mov edx, edi
call fcn.0041a3e7
cmp eax, 0x100000
jbe 0x47b369
mov edx, edi
lea ecx, [esp + 0x30]
call fcn.0045bd04
cmp dword [ebp + 0x14], 0
je 0x47b34e
call fcn.00419e19
test eax, eax
je 0x47b34e
push 0
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00419828
add esp, 0xc
test eax, eax
jne 0x47b34e
lea eax, [esp + 0x30]
call fcn.004199a1
push edi
mov ecx, ebx
lea eax, [esp + 0x34]
call fcn.00477a48
pop ecx
jmp 0x47b36e
lea eax, [esp + 0x30]
push edi
push eax
call fcn.004a8a6f
test eax, eax
pop ecx
pop ecx
je 0x47b36e
mov dword [esp + 0x14], 1
jmp 0x47b36e
and dword [esp + 0x14], 0
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp + 0x14], edi
mov dword [esp + 0x24], ebx
je 0x47b39b
xor ecx, ecx
lea edx, [esp + 0x30]
call fcn.0041a3e7
test eax, eax
jbe 0x47b38f
mov dword [esp + 0x24], edi
push 0x504
mov edx, 0x4cc810
jmp 0x47b3a5
push 0x506
mov edx, 0x4c9fe4
push str..StringList.c
lea ecx, [esp + 0x38]
call fcn.0041bb64
cmp eax, edi
pop ecx
mov dword [esp + 0x14], eax
pop ecx
jne 0x47b3d5
cmp dword [esp + 0x14], edi
je 0x47b2ad
lea eax, [esp + 0x30]
call fcn.004199a1
jmp 0x47b2ad
push esi
call fcn.0047bff5
test eax, eax
pop ecx
jne 0x47b3eb
mov ecx, dword [esp + 0x10]
call fcn.0041bf91
jmp 0x47b3bd
lea ecx, [esi + 0x34]
mov eax, 0x1b58
call fcn.0041c8c3
call fcn.0049a965
cmp dword [ebp + 0x10], edi
mov dword [esp + 0x28], eax
je 0x47b40b
mov eax, dword [esi + 0xc]
jmp 0x47b40d
xor eax, eax
cmp eax, dword [esi + 4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
jge 0x47b4ef
shl eax, 4
mov edi, eax
mov eax, dword [esi]
xor ebx, ebx
cmp dword [edi + eax], ebx
je 0x47b4db
cmp dword [esp + 0x2c], ebx
je 0x47b445
cmp dword [ebp + 0x14], ebx
je 0x47b45a
cmp dword [esp + 0x24], ebx
jne 0x47b45a
push dword [esp + 0x10]
push 1
push 1
push 0x4c926c
call fcn.004a7ca6
add esp, 0x10
mov eax, dword [esi]
push dword [eax + edi]
mov dword [esp + 0x30], ebx
call fcn.004a7f30
mov ebx, eax
test ebx, ebx
pop ecx
jle 0x47b489
mov eax, dword [esi]
push dword [eax + edi]
push 0x4c747c
push dword [esp + 0x18]
call fcn.0046d2ef
add esp, 0xc
cmp eax, ebx
jl 0x47b48d
inc dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push 0x19
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x47b4db
call fcn.0049a965
sub eax, dword [esp + 0x28]
cmp eax, 0x7d0
jbe 0x47b4db
mov eax, esi
call fcn.0047c022
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0047bff5
test eax, eax
pop ecx
je 0x47b53b
mov eax, 0x1b58
lea ecx, [esi + 0x34]
call fcn.0041c8c3
call fcn.0049a965
mov dword [esp + 0x28], eax
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add edi, 0x10
cmp eax, dword [esi + 4]
jl 0x47b427
mov eax, esi
call fcn.0047c022
mov ecx, dword [esp + 0x10]
call fcn.0041bf91
cmp dword [esp + 0x14], 0
je 0x47b522
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
call fcn.00419828
add esp, 0xc
lea eax, [esp + 0x30]
call fcn.004199a1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a8565
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
call fcn.0041bf91
cmp dword [esp + 0x14], 0
je 0x47b522
jmp 0x47b3c7