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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61ac58
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x468
mov eax, dword [0x69cffc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x43c], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x438]
push eax
mov dword [ebp - 0x420], 0
call fcn.005ef5a2
mov edi, dword [ebp - 0x434]
add esp, 4
mov dword [ebp - 0x418], edi
test edi, edi
jl 0x4471f4
mov esi, dword [ebp - 0x438]
mov dword [ebp - 0x410], esi
jg 0x447217
test esi, esi
jne 0x447217
xorps xmm0, xmm0
movlpd qword [ebp - 0x438], xmm0
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x410], eax
lea ecx, [ebp - 0x428]
call fcn.00404500
push 0x66ecac
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x428]
call fcn.00404520
mov dword [ebp - 0x420], 1
lea eax, [ebp - 0x434]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x41c]
push 0x6aa3cc
push eax
call fcn.004046d0
add esp, 0xc
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x434]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x447289
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x41c]
cmp dword [ecx - 4], 1
jle 0x4472a9
push dword [ecx - 0xc]
lea ecx, [ebp - 0x41c]
call fcn.004030b0
mov ecx, dword [ebp - 0x41c]
call fcn.004043c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4472cc
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x4472e4
call fcn.0044a657
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x4478c0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x420], 3
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x41c]
push 1
push 0x66ecf8
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00404650
add esp, 0x14
lea eax, [ebp - 0x40c]
push str.data2.cab
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004042f0
add esp, 0xc
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x40c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44735a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x66ece8
push dword [ebp - 0x440]
lea eax, [ebp - 0x40c]
xor esi, esi
push eax
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x40c], esi
call fcn.005f21b2
mov eax, dword [ebp - 0x40c]
add esp, 0xc
test eax, eax
jne 0x447390
xor ecx, ecx
jmp 0x4473f7
push 2
push 0
push eax
call fcn.005f2f57
add esp, 0xc
push dword [ebp - 0x40c]
call fcn.005f2c75
add esp, 4
mov esi, eax
push dword [ebp - 0x40c]
call fcn.005f2525
add esp, 4
push esi
call fcn.00447f05
add esp, 4
mov dword [ebp - 0x420], eax
push dword [ebp - 0x40c]
push esi
push 1
push eax
call fcn.005f23ea
push dword [ebp - 0x40c]
mov esi, eax
call fcn.005f1ddf
xor eax, eax
add esp, 0x14
cmp eax, esi
sbb ecx, ecx
and ecx, esi
mov esi, dword [ebp - 0x420]
mov eax, 0x2aaaaaab
mov dword [ebp - 0x468], 0
imul ecx
lea eax, [ebp - 0x478]
sar edx, 2
mov edi, edx
shr edi, 0x1f
push eax
add edi, edx
call fcn.005ef5a2
add esp, 4
lea eax, [ebp - 0x470]
push eax
call fcn.005ef5a2
add esp, 4
mov dword [ebp - 0x448], 0
lea eax, [ebp - 0x458]
push eax
call fcn.005ef5a2
add esp, 4
lea eax, [ebp - 0x450]
push eax
call fcn.005ef5a2
add esp, 4
test edi, edi
jle 0x447479
lea eax, [edi + edi*2]
movups xmm0, xmmword [esi + eax*8 - 0x18]
movups xmmword [ebp - 0x478], xmm0
movq xmm0, qword [esi + eax*8 - 8]
movq qword [ebp - 0x468], xmm0
lea ecx, [ebp - 0x408]
call fcn.004047a0
mov ecx, dword [ebp - 0x42c]
mov eax, ecx
mov edx, dword [ebp - 0x414]
or eax, edx
jne 0x44758d
test edi, edi
jle 0x4474b5
mov edi, dword [ebp - 0x470]
mov eax, dword [ebp - 0x46c]
add edi, 1
adc eax, 0
jmp 0x44754d
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x418]
push 0x24
mov dword [ebp - 0x42c], eax
call fcn.00447eb9
mov esi, eax
add esp, 4
test esi, esi
je 0x4474f0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
jmp 0x4474f2
xor esi, esi
lea eax, [ebp - 0x430]
push eax
push esi
call fcn.005f14a6
add esp, 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x428], xmm0
test eax, eax
jne 0x44752a
push esi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi], 1
call fcn.005f33e7
add esp, 4
mov edi, eax
jmp 0x447536
mov edx, dword [ebp - 0x424]
mov edi, dword [ebp - 0x428]
push 0x24
push esi
mov dword [ebp - 0x414], edx
call fcn.0058f106
mov eax, dword [ebp - 0x414]
add esp, 8
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x448], 0
mov dword [eax + 0xc], 0
jmp 0x447800
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], ecx
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x424], edx
push eax
call fcn.005f14a6
mov esi, dword [ebp - 0x2c]
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x418]
cmovne esi, ecx
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.005f14a6
mov ecx, dword [ebp - 0x50]
xor edx, edx
add esp, 0x10
test eax, eax
cmovne ecx, edx
cmp esi, ecx
je 0x44768c
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x418]
push 0x24
mov dword [ebp - 0x45c], eax
call fcn.00447eb9
mov esi, eax
add esp, 4
test esi, esi
je 0x44762b
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
jmp 0x44762d
xor esi, esi
lea eax, [ebp - 0x460]
push eax
push esi
call fcn.005f14a6
add esp, 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x428], xmm0
test eax, eax
jne 0x447669
push esi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi], 1
call fcn.005f33e7
add esp, 4
mov dword [ebp - 0x414], edx
jmp 0x44767b
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp - 0x428]
push 0x24
push esi
mov dword [ebp - 0x42c], eax
call fcn.0058f106
add esp, 8
mov esi, dword [ebp - 0x410]
mov eax, esi
sub eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 0x410], eax
mov eax, ecx
sbb eax, dword [ebp - 0x414]
test eax, eax
jg 0x4477a6
jl 0x4476cf
mov eax, dword [0x6aa3e0]
cmp dword [ebp - 0x410], eax
ja 0x4477a6
test edi, edi
jle 0x447700
mov eax, esi
sub eax, dword [ebp - 0x470]
mov dword [ebp - 0x410], eax
mov eax, ecx
sbb eax, edx
test eax, eax
jg 0x4477aa
jl 0x447700
mov eax, dword [0x6aa3e0]
cmp dword [ebp - 0x410], eax
ja 0x4477aa
mov ecx, str.RestProcess
lea eax, [ebp - 0x2c2]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x447736
test dx, dx
je 0x447732
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x447736
add eax, 4
add ecx, 4
test dx, dx
jne 0x447710
xor eax, eax
jmp 0x44773b
sbb eax, eax
or eax, 1
test eax, eax
je 0x44779a
test edi, edi
jle 0x44775d
mov ecx, dword [ebp - 0x470]
mov eax, dword [ebp - 0x46c]
add ecx, 1
mov dword [ebp - 0x458], ecx
adc eax, 0
jmp 0x44776f
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x448], 1
mov dword [eax + 0xc], 1
jmp 0x4477f9
mov ecx, dword [ebp - 0x418]
mov edx, dword [ebp - 0x46c]
test edi, edi
jle 0x4477c4
mov eax, dword [ebp - 0x470]
add eax, 1
mov dword [ebp - 0x458], eax
adc edx, 0
mov dword [ebp - 0x454], edx
jmp 0x4477dc
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x448], 2
mov dword [eax + 0xc], 2
mov dword [ebp - 0x450], esi
nop
push 0x66ecf0
push dword [ebp - 0x440]
call fcn.005f219b
mov edi, eax
add esp, 8
test edi, edi
je 0x447839
push edi
push 0x18
lea eax, [ebp - 0x458]
push 1
push eax
call fcn.005f2082
push edi
mov esi, eax
call fcn.005f1ddf
add esp, 0x14
test esi, esi
jne 0x447846
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x447800
mov eax, dword [ebp - 0x420]
push eax
call fcn.00447f00
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x440]
add esp, 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x447879
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x41c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x44789b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058f0d5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push 0x80004005
call fcn.00403270
int3