Function at 0x470700
Capabilities:
Inspect section memory permissions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x288
mov eax, dword [0x51e080]
xor eax, esp
mov dword [esp + 0x284], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edi
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp dword [edi + 0x1c], ecx
jbe 0x4708b3
xor edx, edx
mov dword [esp + 0x10], edx
mov esi, dword [edi + 0x2c]
add esi, edx
mov eax, dword [esi + 0x10]
movzx ecx, al
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xc]
test eax, 0x40000000
je case.0x470792.4
and eax, 0x30000000
cmp eax, 0x10000000
jne case.0x470792.4
mov eax, dword [esp + 0x14]
dec eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x1c], 0
cmp eax, 4
ja case.0x470792.4
jmp dword [eax*4 + 0x470dbc]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x24], eax
jmp 0x47081d
mov eax, dword [edi]
lea ecx, [esi + 0x24]
push ecx
push dword [esi + 8]
mov ecx, edi
push 0
call dword [eax + 8]
jmp 0x470815
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push dword [esi + 8]
mov ecx, edi
push 0
call dword [eax + 4]
push dword [esp + 0x20]
jmp 0x4707f2
mov eax, dword [edi]
lea ecx, [esp + 0x28]
push ecx
push dword [esi + 8]
mov ecx, edi
push 0
call dword [eax]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
lea eax, [eax*2 + 0x10]
mov dword [esp + 0x20], eax
push eax
call fcn.004d9a7e
add esp, 4
mov dword [esi + 0x24], eax
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x1c], ecx
push dword [esp + 0x20]
push dword [esp + 0x2c]
push eax
call fcn.004d6950
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
and eax, 0xefffffff
or eax, 0x20000000
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x1c]
inc ecx
add edx, 0x2c
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
cmp ecx, eax
jb 0x470748
xor ecx, ecx
mov dword [esp + 0xc], ecx
test eax, eax
je 0x47089f
mov esi, dword [edi + 0x2c]
mov edi, eax
add esi, 0x10
mov eax, dword [esi]
movzx edx, al
and eax, 0x30000000
cmp eax, 0x20000000
jne 0x47088f
test edx, edx
je 0x47088c
cmp edx, 1
je 0x47088c
cmp edx, 2
je 0x47088c
cmp edx, 3
je 0x470884
cmp edx, 4
je 0x470884
cmp edx, 5
jne 0x47088f
add ecx, 8
add ecx, dword [esi + 0xc]
jmp 0x47088f
add ecx, 0xc
add esi, 0x2c
sub edi, 1
jne 0x470856
mov edi, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov edx, ecx
mov eax, ecx
mov dword [esp + 0x18], eax
and edx, 0xf
je 0x4708bd
sub eax, edx
add eax, 0x10
jmp 0x4708b9
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
lea esi, [eax + 0x50]
push esi
mov dword [esp + 0x3c], esi
call fcn.004d9a7e
add esp, 4
mov dword [esp + 0x2c], eax
push esi
call fcn.004d9a7e
mov ecx, dword [edi + 0x38]
add esp, 4
mov dword [esp + 0x1c], eax
mov esi, dword [ecx + 0x488]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 4
push dword [esp + 0x30]
mov ecx, esi
call fcn.004b0e10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], 0
mov dword [esi + 4], eax
add esi, 8
cmp dword [ecx + 0x1c], 0
mov dword [esp + 0x10], esi
jbe 0x4709c3
xor edx, edx
mov dword [esp + 0x10], edx
mov edi, dword [ecx + 0x2c]
add edi, edx
mov eax, dword [edi + 0x10]
movzx edx, al
and eax, 0x30000000
cmp eax, 0x20000000
jne 0x4709a2
test edx, edx
je 0x47098d
cmp edx, 1
je 0x47098d
cmp edx, 2
je 0x47098d
cmp edx, 3
je 0x470967
cmp edx, 4
je 0x470967
cmp edx, 5
jne 0x4709a2
mov eax, dword [edi + 8]
mov dword [esi], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 4], eax
add esi, 8
push dword [edi + 0x1c]
push dword [edi + 0x24]
push esi
call fcn.004d6950
mov ecx, dword [esp + 0x30]
add esp, 0xc
add esi, dword [edi + 0x1c]
jmp 0x4709a2
mov eax, dword [edi + 8]
mov dword [esi], eax
mov dword [esi + 4], 4
mov eax, dword [edi + 0x24]
mov dword [esi + 8], eax
add esi, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc eax
add edx, 0x2c
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
cmp eax, dword [ecx + 0x1c]
jb 0x470933
mov dword [esp + 0x10], esi
lea eax, [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x38]
mov esi, dword [eax + 0x488]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, esi
sub eax, dword [esp + 0xc]
add eax, 8
push eax
push dword [esp + 0x14]
call fcn.004b0e10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov edx, edi
sub edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x38]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x480]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x470ac4
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0xffffffff
push eax
lea eax, [edi + 0x10]
mov dword [esp + 0x48], 0xffffffff
push eax
push ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x68], 0xffffffff
call fcn.004b1300
xor dword [esp + 0x40], 0x81e6b3f
xor dword [esp + 0x44], 0x569ed9b
xor dword [esp + 0x48], 0x2cd5d85
xor dword [esp + 0x4c], 0x674b7466
xor dword [esp + 0x50], 0x2d027638
xor dword [esp + 0x54], 0x5b299276
xor dword [esp + 0x58], 0xb671f6d
xor dword [esp + 0x5c], 0x52453c93
mov edx, dword [esp + 0xc]
movups xmm0, xmmword [esp + 0x40]
mov eax, dword [esp + 0x10]
movups xmmword [eax + edx + 8], xmm0
movups xmm0, xmmword [esp + 0x50]
movups xmmword [eax + edx + 0x18], xmm0
mov eax, dword [esi + 0x38]
mov esi, dword [eax + 0x488]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add edx, 0x30
add ecx, edx
push 0x20
push ecx
mov ecx, esi
call fcn.004b0e10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x9c4
call fcn.004d3886
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, dword [esp + 0x18]
mov esi, eax
add ecx, 0x30
mov dword [esp + 0x10], esi
add edi, ecx
mov ecx, esi
push 8
push edi
mov dword [esi + 0x9c0], 0x271
call fcn.004b42f0
mov ecx, esi
call fcn.00409ee0
xor eax, 0x729a48f7
mov ecx, esi
mov dword [esp + 0x14], eax
mov eax, dword [edi]
xor eax, 0x2781ce40
mov dword [esp + 0xc], eax
call fcn.00409ee0
mov ecx, dword [esp + 0x1c]
mov edi, dword [edi + 4]
imul eax, eax, 0xf4908bb2
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov eax, dword [ecx + eax + 0x4c]
mov ecx, esi
xor eax, 0x2781ce40
mov dword [esp + 0x26c], eax
call fcn.00409ee0
mov edx, dword [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x270], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edx + 0x38]
mov dword [esp + 0x274], eax
call fcn.00409ee0
mov ecx, dword [esp + 0x10]
mov esi, eax
call fcn.00409ee0
mov edx, dword [esp + 0x1c]
xor eax, esi
add edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x3c]
xor ecx, eax
mov dword [esp + 0x278], ecx
mov eax, dword [edx + 0x48]
xor eax, dword [edx + 0x40]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x27c], eax
call fcn.00409ee0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x280], eax
call fcn.00409ee0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + edx + 0x44]
xor ecx, eax
mov esi, dword [esp + 0x10]
mov dword [esp + 0x284], ecx
mov ecx, esi
call fcn.00409ee0
xor eax, 0x19750309
push 0x9c4
push esi
mov dword [esp + 0x290], eax
call fcn.004d38b6
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x274]
add esp, 8
mov ecx, dword [esi + 0x38]
push eax
push 0x20
lea eax, [esp + 0x68]
mov ecx, dword [ecx + 0x484]
push eax
call fcn.004b48f0
mov eax, dword [esi + 0x38]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
add edx, 0x30
mov ecx, dword [eax + 0x484]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x244], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24c], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x248], eax
test esi, esi
je 0x470cf2
test edi, edi
je 0x470cf2
mov eax, dword [esp + 0x260]
cmp eax, 0xa
je 0x470cb0
cmp eax, 0xc
je 0x470cb0
cmp eax, 0xe
jne 0x470cf2
test dl, 0xf
jne 0x470cf2
shr edx, 4
sub eax, 0xa
je 0x470ce5
sub eax, 2
je 0x470cd6
sub eax, 2
jne 0x470cf2
push edx
push edi
push esi
lea eax, [esp + 0x6c]
push eax
call fcn.004b6710
jmp 0x470cf2
push edx
push edi
push esi
lea eax, [esp + 0x6c]
push eax
call fcn.004b7580
jmp 0x470cf2
push edx
push edi
push esi
lea eax, [esp + 0x6c]
push eax
call fcn.004b8200
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x470d74
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 2
push 0
push 7
push 0x40000000
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x470d74
push esi
call fcn.004d9a63
add esp, 4
push edi
call fcn.004d9a63
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4
push 0
lea ecx, [esp + 0x40]
push ecx
push dword [esp + 0x40]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004d9a63
add esp, 4
push edi
call fcn.004d9a63
mov ecx, dword [esp + 0x290]
add esp, 4
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4