Function at 0x47dcf0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xc8
push esi
push edi
push 0x18
mov dword [ebp - 0x18], 0
call fcn.00408fd0
mov edi, eax
lea edx, [ebp - 0x54]
add esp, 4
mov dword [ebp - 0x10], edi
mov ecx, edi
mov dword [ebp - 0x54], edi
call fcn.004096f0
lea ecx, [edi + 4]
call fcn.004096f0
lea ecx, [edi + 8]
call fcn.004096f0
mov word [edi + 0xc], 0x101
mov ecx, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x7c], 0xe4
mov eax, dword [edi + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
cmp byte [eax + 0xd], 0
jne 0x47dd99
jmp 0x47dd70
cmp dword [eax + 0x10], 0xe4
mov dword [ebp - 4], eax
jge 0x47dd88
mov eax, dword [eax + 8]
mov dword [ebp - 8], 0
jmp 0x47dd93
mov ecx, eax
mov dword [ebp - 8], 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x47dd70
cmp byte [ecx + 0xd], 0
jne 0x47ddac
cmp dword [ecx + 0x10], 0xe4
jle 0x47de55
cmp dword [ebp - 0x18], 0xaaaaaaa
je 0x47e3fc
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0x1c]
push 0x18
mov dword [ebp - 0x70], eax
call fcn.00408fd0
mov esi, eax
lea edx, [ebp - 0x7c]
mov al, byte [0x4aa8fb]
mov byte [ebp - 0xc], al
mov dword [ebp - 0x6c], esi
lea ecx, [esi + 0x10]
push ecx
mov eax, esp
push dword [ebp - 0xc]
mov dword [eax], edx
call fcn.00417970
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.004096f0
lea ecx, [esi + 4]
call fcn.004096f0
lea ecx, [esi + 8]
call fcn.004096f0
lea edx, [ebp - 0x88]
mov word [esi + 0xc], 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x88], 0
call fcn.00409b30
mov ecx, dword [ebp - 0x6c]
mov esi, eax
test ecx, ecx
je 0x47de3e
push 0x18
push ecx
call fcn.00409000
add esp, 8
push esi
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push dword [ebp - 4]
call fcn.004098a0
mov edi, dword [ebp - 0x1c]
mov ecx, eax
mov dword [ebp - 0x10], edi
cmp dword [ecx + 0x14], 5
jne 0x47de7d
push dword [edi + 4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, eax
call fcn.004102f0
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
mov dword [ebp - 0x18], 0
jmp 0x47df79
mov edx, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x80], edx
mov eax, dword [edi + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
cmp byte [eax + 0xd], 0
jne 0x47dec0
mov dword [ebp - 4], eax
cmp dword [eax + 0x10], edx
jge 0x47deac
mov eax, dword [eax + 8]
mov dword [ebp - 8], 0
jmp 0x47deb7
mov ecx, eax
mov dword [ebp - 8], 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x47de98
mov edi, dword [ebp - 0x10]
cmp byte [ecx + 0xd], 0
jne 0x47decf
cmp edx, dword [ecx + 0x10]
jge 0x47df72
cmp edx, 0xaaaaaaa
je 0x47e401
lea eax, [ebp - 0x80]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x1c]
push 0x18
mov dword [ebp - 0x78], eax
call fcn.00408fd0
mov dl, byte [0x4aa8fb]
mov esi, eax
mov byte [ebp - 0xc], dl
lea eax, [ebp - 0x80]
mov dword [ebp - 0x74], esi
lea ecx, [esi + 0x10]
push ecx
mov edx, esp
push dword [ebp - 0xc]
mov dword [edx], eax
call fcn.00417970
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004096f0
lea ecx, [esi + 4]
call fcn.004096f0
lea ecx, [esi + 8]
call fcn.004096f0
lea edx, [ebp - 0x8c]
mov word [esi + 0xc], 0
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x8c], 0
call fcn.00409b30
mov ecx, dword [ebp - 0x74]
mov esi, eax
test ecx, ecx
je 0x47df61
push 0x18
push ecx
call fcn.00409000
add esp, 8
push esi
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push dword [ebp - 4]
call fcn.004098a0
mov ecx, eax
mov dword [ecx + 0x14], 5
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, eax
call fcn.004102f0
push 0x18
push dword [ebp - 0x1c]
call fcn.00409000
mov dword [ebp - 0xb0], 0x115eab16
lea eax, [ebx + 8]
mov dword [ebp - 0xac], 0xcb06b29b
add esp, 8
cmp dword [ebx + 0x1c], 0x10
mov dword [ebp - 0xa8], 0x6775e8c6
mov dword [ebp - 0xa4], 0xfe5ca786
movaps xmm1, xmmword [ebp - 0xb0]
mov dword [ebp - 0x40], 0x115ec961
mov dword [ebp - 0x3c], 0xcb06b29b
mov dword [ebp - 0x38], 0x6775e8c6
mov dword [ebp - 0x34], 0xfe5ca786
pxor xmm1, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0xb0], xmm1
jb 0x47dffa
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.004488a2
add esp, 8
mov dword [ebp - 0x64], eax
test eax, eax
je 0x47e3b7
push 0x18
mov dword [ebp - 0x20], 0
call fcn.00408fd0
mov edi, eax
lea edx, [ebp - 8]
add esp, 4
mov dword [ebp - 4], edi
mov ecx, edi
mov dword [ebp - 8], edi
call fcn.004096f0
lea ecx, [edi + 4]
call fcn.004096f0
lea ecx, [edi + 8]
call fcn.004096f0
mov word [edi + 0xc], 0x101
mov ecx, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x84], 0xe4
mov eax, dword [edi + 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x14], 0
cmp byte [eax + 0xd], 0
jne 0x47e09c
cmp dword [eax + 0x10], 0xe4
mov dword [ebp - 0x44], eax
jge 0x47e088
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], 0
jmp 0x47e093
mov ecx, eax
mov dword [ebp - 0x14], 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x47e070
mov edi, dword [ebp - 4]
cmp byte [ecx + 0xd], 0
jne 0x47e0af
cmp dword [ecx + 0x10], 0xe4
jle 0x47e15f
cmp dword [ebp - 0x20], 0xaaaaaaa
je 0x47e406
lea eax, [ebp - 0x84]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x24]
push 0x18
mov dword [ebp - 0x50], eax
call fcn.00408fd0
mov dl, byte [0x4aa8fb]
mov esi, eax
mov byte [ebp - 0xc], dl
lea eax, [ebp - 0x84]
mov dword [ebp - 0x4c], esi
lea ecx, [esi + 0x10]
push ecx
mov edx, esp
push dword [ebp - 0xc]
mov dword [edx], eax
call fcn.00417970
lea edx, [ebp - 0x5c]
mov ecx, esi
call fcn.004096f0
lea ecx, [esi + 4]
call fcn.004096f0
lea ecx, [esi + 8]
call fcn.004096f0
lea edx, [ebp - 0x90]
mov word [esi + 0xc], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x90], 0
call fcn.00409b30
mov ecx, dword [ebp - 0x4c]
mov esi, eax
test ecx, ecx
je 0x47e148
push 0x18
push ecx
call fcn.00409000
add esp, 8
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push dword [ebp - 0x44]
call fcn.004098a0
mov edi, dword [ebp - 0x24]
mov ecx, eax
mov dword [ebp - 4], edi
cmp dword [ecx + 0x14], 5
jne 0x47e187
push dword [edi + 4]
lea eax, [ebp - 0x24]
push eax
mov ecx, eax
call fcn.004102f0
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
mov dword [ebp - 0x20], 0
jmp 0x47e27d
mov edx, dword [ebp - 0x20]
mov ecx, edi
mov dword [ebp - 0x44], edx
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
cmp byte [eax + 0xd], 0
jne 0x47e1ca
mov dword [ebp - 0xc], eax
cmp dword [eax + 0x10], edx
jge 0x47e1b6
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], 0
jmp 0x47e1c1
mov ecx, eax
mov dword [ebp - 0x14], 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x47e1a2
mov edi, dword [ebp - 4]
cmp byte [ecx + 0xd], 0
jne 0x47e1d9
cmp edx, dword [ecx + 0x10]
jge 0x47e276
cmp edx, 0xaaaaaaa
je 0x47e40b
lea eax, [ebp - 0x44]
mov dword [ebp - 4], edi
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x24]
push 0x18
mov dword [ebp - 0x38], eax
call fcn.00408fd0
mov dl, byte [0x4aa8fb]
mov esi, eax
mov byte [ebp - 0x60], dl
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], esi
lea ecx, [esi + 0x10]
push ecx
mov edx, esp
push dword [ebp - 0x60]
mov dword [edx], eax
call fcn.00417970
lea edx, [ebp - 4]
mov ecx, esi
call fcn.004096f0
lea ecx, [esi + 4]
call fcn.004096f0
lea ecx, [esi + 8]
call fcn.004096f0
lea edx, [ebp - 0x60]
mov word [esi + 0xc], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x60], 0
call fcn.00409b30
mov ecx, dword [ebp - 0x34]
mov esi, eax
test ecx, ecx
je 0x47e265
push 0x18
push ecx
call fcn.00409000
add esp, 8
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push dword [ebp - 0xc]
call fcn.004098a0
mov ecx, eax
mov dword [ecx + 0x14], 5
mov eax, dword [ebp - 0x24]
push dword [eax + 4]
lea eax, [ebp - 0x24]
push eax
mov ecx, eax
call fcn.004102f0
push 0x18
push dword [ebp - 0x24]
call fcn.00409000
mov dword [ebp - 0x38], 0x88da
add esp, 8
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], 0
xor eax, 0x17
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x70], eax
xor ecx, 0
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x38], 0x17
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x78], 0x88b5
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x50]
add edx, eax
mov ecx, dword [ebp - 0x4c]
adc esi, ecx
add edx, 1
mov dword [ebp - 0x50], edx
adc esi, 0
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x6c]
sub edx, eax
mov dword [ebp - 0x38], edx
sbb esi, ecx
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
push eax
push ecx
push edx
push esi
call fcn.00460cc0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0x34], 0x10
lea eax, [ebx + 0x20]
jb 0x47e344
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp - 0x64]
push esi
push dword [ebx + 0x30]
push ecx
push eax
call fcn.00448ed7
mov eax, dword fs:[0x2c]
add esp, 0x10
mov ecx, dword [eax]
mov eax, dword [0x4bcf3c]
cmp eax, dword [ecx + 4]
jg 0x47e410
mov ecx, dword [0x4bcf34]
mov eax, ecx
mov edx, dword [0x4bcf30]
sub eax, edx
sar eax, 2
cmp eax, 0x28
jae 0x47e3a8
mov dword [ebp - 0x64], eax
cmp ecx, dword [0x4bcf38]
je 0x47e39c
mov dword [ecx], eax
add dword [0x4bcf34], 4
jmp 0x47e3ae
lea eax, [ebp - 0x64]
push eax
push ecx
call fcn.00410340
jmp 0x47e3ae
mov dword [0x4bcf34], edx
push esi
call fcn.0044892f
add esp, 4
mov eax, dword [ebx + 0x1c]
cmp eax, 0x10
jb 0x47e3cc
inc eax
push eax
push dword [ebx + 8]
call fcn.00409000
add esp, 8
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp eax, 0x10
jb 0x47e3f3
inc eax
push eax
push dword [ebx + 0x20]
call fcn.00409000
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401c20
call fcn.00401c20
call fcn.00401c20
call fcn.00401c20
push 0x4bcf3c
call fcn.00419156
add esp, 4
cmp dword [0x4bcf3c], 0xffffffff
jne 0x47e36e
push 0x4934b0
mov dword [0x4bcf30], 0
mov dword [0x4bcf34], 0
mov dword [0x4bcf38], 0
call fcn.00418fd4
add esp, 4
push 0x4bcf3c
call fcn.0041910c
add esp, 4
jmp 0x47e36e