Function at 0x472650
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f707b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x528c24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x20]
push 0
mov dword [ebp - 0x88], ecx
call fcn.0041ad00
mov eax, dword [esi + 4]
mov ecx, 0x4fe414
test al, 0x40
je 0x4726a5
mov ecx, 0x505d20
jmp 0x4726ae
test al, 0x20
je 0x4726ae
mov ecx, 0x4ff508
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [esi], 0
call fcn.00490910
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x4726d3
mov ecx, esi
call fcn.0046d790
jmp 0x4729d1
mov ecx, dword [esi + 4]
xor edi, edi
mov byte [ebp - 0x75], 1
mov dword [esi + 0x18], 1
test cl, 0x10
je 0x4728ed
push 2
push edi
push eax
call fcn.0049177f
mov ecx, dword [esi]
push ecx
call fcn.00493ce3
mov edx, dword [esi]
push edi
push edi
push edx
mov dword [esi + 0x10], eax
call fcn.0049177f
mov eax, dword [esi + 0x10]
mov ebx, 0x400
add esp, 0x1c
cmp eax, ebx
jge 0x472723
mov ebx, eax
test ebx, ebx
je 0x47298c
push ebx
call fcn.00487baa
mov ecx, dword [esi]
push ecx
push 1
push ebx
push eax
mov dword [ebp - 0x84], eax
call fcn.00493b29
add esp, 0x14
cmp eax, 1
sete al
mov byte [ebp - 0x75], al
test al, al
je 0x4728d9
and dword [esi + 4], 0xfffffffa
mov dword [ebp - 0x80], edi
cmp dword [0x527278], edi
je 0x4727cd
xor eax, eax
mov ecx, dword [eax + 0x52727c]
test ecx, ecx
jle 0x47278d
cmp edi, ebx
jge 0x47278d
mov ecx, dword [ebp - 0x84]
mov cl, byte [ecx + edi]
mov edx, dword [eax + 0x527278]
cmp cl, byte [edi + edx]
mov ecx, dword [eax + 0x52727c]
jne 0x47278d
inc edi
cmp edi, ecx
jl 0x47276a
mov eax, dword [ebp - 0x80]
cmp edi, ecx
je 0x4727a7
inc eax
mov dword [ebp - 0x80], eax
xor edi, edi
shl eax, 4
cmp dword [eax + 0x527278], edi
jne 0x472760
jmp 0x4727cd
shl eax, 4
mov edx, dword [eax + 0x527284]
or edx, dword [esi + 4]
mov dword [esi + 4], edx
cmp edi, 2
jne 0x4727be
mov dword [esi + 0x18], edi
mov eax, dword [eax + 0x527280]
push eax
lea ecx, [esi + 0x3c]
call fcn.00425a90
cmp ebx, edi
jle 0x4727df
mov ecx, dword [esi]
push 0
push edi
push ecx
call fcn.0049177f
add esp, 0xc
xor eax, eax
cmp edi, eax
jne 0x4728bb
xor edx, edx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x84]
push ebx
push eax
push ecx
mov eax, esp
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x7c], esp
mov dword [eax], 0x5028b4
call fcn.0046ce20
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.00487baa
add esp, 4
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x7c], eax
call fcn.0046c360
push ecx
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x7c]
mov eax, esp
mov dword [ebp - 0x80], esp
push ebx
lea ecx, [ebp - 0x74]
mov dword [eax], str.UTF_16
call fcn.0046cec0
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0041b370
push ebx
call fcn.0048ee52
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x7c], esp
push eax
call fcn.0046bb40
lea ecx, [ebp - 0xa4]
push ecx
call fcn.0046ded0
add esp, 8
push eax
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 2
call fcn.00427960
lea ecx, [ebp - 0xa4]
call fcn.0041ae00
lea ecx, [ebp - 0x74]
call fcn.0046c280
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0041ae00
cmp dword [esi + 0x50], 0
jne 0x4728d9
mov edx, dword [ebp - 0x84]
cmp byte [edx], 0x3c
jne 0x4728d9
push 0x5028b4
lea ecx, [esi + 0x3c]
call fcn.00425a90
mov eax, dword [ebp - 0x84]
push eax
call fcn.0048ee52
add esp, 4
jmp 0x472982
test cl, 0x20
je 0x47298c
test cl, 0x40
je 0x472913
push 2
push 0
push eax
call fcn.0049177f
mov ecx, dword [esi]
push ecx
call fcn.00493ce3
add esp, 0x10
mov dword [esi + 0x10], eax
xor ecx, ecx
cmp dword [0x527278], edi
je 0x47298c
mov edx, dword [esi + 4]
xor eax, eax
test dword [eax + 0x527284], edx
jne 0x47293a
inc ecx
mov eax, ecx
shl eax, 4
cmp dword [eax + 0x527278], edi
jne 0x472922
jmp 0x47298c
shl ecx, 4
mov ebx, ecx
mov edi, dword [ebx + 0x52727c]
cmp edi, 2
jne 0x47294d
mov dword [esi + 0x18], edi
mov edx, dword [ebx + 0x527280]
push edx
lea ecx, [esi + 0x3c]
call fcn.00425a90
cmp dword [esi + 0x10], 0
je 0x472966
xor edi, edi
jmp 0x47298c
mov eax, dword [esi]
mov ecx, dword [ebx + 0x527278]
push eax
push 1
push edi
push ecx
call fcn.0048fed7
add esp, 0x10
cmp eax, 1
sete byte [ebp - 0x75]
cmp byte [ebp - 0x75], 0
je 0x4726c7
test byte [esi + 4], 0x40
je 0x47299a
mov edx, dword [esi + 0x10]
mov dword [esi + 0x14], edx
jmp 0x47299d
mov dword [esi + 0x14], edi
test edi, edi
je 0x4729ce
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x7c], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0x505d18
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], esp
push eax
call fcn.004724b0
add esp, 0x18
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d9be
mov esp, ebp
pop ebp
ret 4