Function at 0x47fdb9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x5345d0]
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 + 0x1c], edi
mov byte [esp + 0x3c], 0
call fcn.004b53e0
add esp, 0xc
mov edx, edi
call fcn.0047c3ca
test eax, eax
je 0x47fe0b
xor eax, eax
jmp 0x480102
and dword [esp + 0x18], 0
mov ebx, 0x104
push edi
mov ecx, ebx
lea eax, [esp + 0x34]
call fcn.0047c3fc
pop ecx
mov edx, eax
call fcn.0047cea7
cmp byte [esp + 0x30], 0x5c
jne 0x47ff1b
cmp byte [esp + 0x31], 0x5c
jne 0x47ff1b
cmp dword [ebp + 0x14], 0
je 0x47fe68
mov eax, esi
call fcn.0047fd09
cmp eax, 0xc
jge 0x47fe68
push 0
xor edx, edx
mov ecx, edi
call fcn.0041b6bd
cmp eax, 0x100000
pop ecx
jbe 0x47ff1b
mov edx, edi
lea ecx, [esp + 0x30]
call fcn.0045e9fd
cmp dword [ebp + 0x14], 0
je 0x47ff00
call fcn.0041b048
test eax, eax
je 0x47ff00
push 0
lea eax, [esp + 0x34]
push eax
push edi
call fcn.0041a890
add esp, 0xc
test eax, eax
jne 0x47ff00
push str._GetLastError_
lea eax, [esp + 0x34]
push eax
push edi
push str.SaveStringListToFile
push str.:2:_s___EAP:_Failed_to_copy_locally:_CopyFile___s_____s___FAILED:__s
call fcn.00417db7
add esp, 0x14
lea eax, [esp + 0x30]
call fcn.0041aa09
push edi
mov ecx, ebx
lea eax, [esp + 0x34]
call fcn.0047c3fc
pop ecx
xor ebx, ebx
xor edi, edi
inc edi
cmp dword [ebp + 0x14], ebx
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x30]
je 0x47ff23
push ebx
xor edx, edx
call fcn.0041b6bd
test eax, eax
pop ecx
jbe 0x47fef0
mov dword [esp + 0x2c], ebx
push 0x504
mov edx, 0x4de464
lea ecx, [esp + 0x34]
jmp 0x47ff2d
lea eax, [esp + 0x30]
push edi
push eax
call fcn.004b519f
test eax, eax
pop ecx
pop ecx
je 0x47fecd
mov dword [esp + 0x18], 1
jmp 0x47fecd
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x47fecf
push 0x506
mov edx, 0x4d93ac
push str..StringList.c
call fcn.0041cea8
cmp eax, ebx
pop ecx
mov dword [esp + 0x18], eax
pop ecx
jne 0x47ff6d
push dword [ebp + 0x14]
push dword [esp + 0x14]
push str.:4:SaveStringListToFile___FAILED:_fopen__s__FAILED:_bAppendToFile___d
call fcn.004178df
add esp, 0xc
cmp dword [esp + 0x18], ebx
je 0x47fe04
lea eax, [esp + 0x30]
call fcn.0041aa09
jmp 0x47fe04
mov eax, esi
call fcn.00480de5
test eax, eax
jne 0x47ff83
mov ecx, dword [esp + 0x14]
call fcn.0041d2f0
jmp 0x47ff55
lea ecx, [esi + 0x34]
mov eax, 0x1b58
call fcn.0041f802
call fcn.004a4ba8
cmp dword [ebp + 0x10], ebx
mov dword [esp + 0x28], eax
je 0x47ffa3
mov eax, dword [esi + 0xc]
jmp 0x47ffa5
xor eax, eax
cmp eax, dword [esi + 4]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
jge 0x4800a0
shl eax, 4
mov edi, eax
mov eax, dword [esi]
xor ebx, ebx
cmp dword [edi + eax], ebx
je 0x48008a
cmp dword [esp + 0x24], ebx
je 0x47ffdd
cmp dword [ebp + 0x14], ebx
je 0x47fff2
cmp dword [esp + 0x2c], ebx
jne 0x47fff2
push dword [esp + 0x14]
push 1
push 1
push 0x4d75ac
call fcn.004b43ca
add esp, 0x10
mov eax, dword [esi]
push dword [eax + edi]
mov dword [esp + 0x28], ebx
call fcn.004b4450
mov ebx, eax
test ebx, ebx
pop ecx
jle 0x480034
mov eax, dword [esi]
push dword [eax + edi]
push 0x4d45f8
push dword [esp + 0x1c]
call fcn.00472071
add esp, 0xc
cmp eax, ebx
jge 0x480034
mov eax, dword [esi]
push dword [eax + edi]
push str.:7:SaveStringListToFile___FAILED:_fprintf_fp____s_n___FAILED_
call fcn.004178df
pop ecx
pop ecx
jmp 0x480038
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push 0x19
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x48008a
call fcn.004a4ba8
sub eax, dword [esp + 0x28]
cmp eax, 0x7d0
jbe 0x48008a
mov eax, esi
call fcn.00480e11
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
call fcn.00480de5
test eax, eax
je 0x480117
mov eax, 0x1b58
lea ecx, [esi + 0x34]
call fcn.0041f802
call fcn.004a4ba8
mov dword [esp + 0x28], eax
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add edi, 0x10
cmp eax, dword [esi + 4]
jl 0x47ffbf
xor ebx, ebx
mov eax, esi
call fcn.00480e11
mov ecx, dword [esp + 0x14]
call fcn.0041d2f0
cmp dword [esp + 0x18], ebx
je 0x4800fe
push ebx
push dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
call fcn.0041a890
add esp, 0xc
test eax, eax
jne 0x4800f5
lea edi, [esp + 0x30]
call fcn.0041b048
mov edi, dword [esp + 0x10]
push eax
push ecx
call fcn.0041b048
pop ecx
push eax
lea eax, [esp + 0x38]
push eax
push edi
push str.:6:SaveStringListToFile___s___FAILED:_Could_not_move_file_from_temp___s_:_bDoesExist___d__d
call fcn.004178df
add esp, 0x14
lea eax, [esp + 0x30]
call fcn.0041aa09
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b4c95
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
call fcn.0041d2f0
push dword [esp + 0x10]
push str.:4:SaveStringListToFile___s___FAILED:_The_handle_was_deleted_while_saving_
call fcn.004178df
cmp dword [esp + 0x20], 0
pop ecx
pop ecx
je 0x4800fe
jmp 0x47ff5f