Function at 0x4033a0
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x44f008]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x2c], eax
mov ebx, ecx
mov dword [esp + 0x14], edi
mov eax, 0x4bda12f7
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
mov esi, dword [edi + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 8]
imul ecx
mov eax, dword [esp + 0x14]
sar edx, 6
mov edi, edx
mov dword [esp + 0x34], esi
shr edi, 0x1f
mov ecx, dword [eax + 0x50]
add edi, edx
mov dword [esp + 0x18], ecx
mov edx, edi
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [esp + 0x44], ecx
push ecx
mov ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x4c], eax
call fcn.00403120
mov edi, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov ebx, dword [ebx + 0x6c]
mov eax, dword [esi + 0x78]
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ebx
mov edx, dword [ebx + 8]
mov ecx, edx
mov edi, dword [ebx + 0xc]
mov eax, edi
mov ebx, dword [ebx]
shld ecx, edi, 7
shld eax, edx, 7
sub ebx, ecx
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 4]
sbb ecx, eax
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x38], ecx
mov ecx, eax
shld ecx, ebx, 0xd
mov dword [esp + 0x20], ecx
mov ecx, ebx
shld ecx, eax, 0xd
mov eax, dword [esp + 0x20]
xor eax, edx
xor ecx, edi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ecx
mov edi, dword [edx + 0x18]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov ecx, edi
mov edx, dword [edx + 0x1c]
mov eax, edx
shld eax, ecx, 5
shld ecx, edx, 5
add eax, dword [esi + 0x10]
adc ecx, ebx
mov ebx, esi
add edi, dword [esp + 0x48]
mov dword [ebx + 0xc], ecx
mov ecx, ebx
adc edx, dword [esp + 0x38]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x10], edi
mov edi, ecx
mov ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
adc eax, dword [esp + 0x38]
mov dword [edi + 0x1c], eax
mov eax, 0x51eb851f
mov dword [edi + 0x14], edx
mul ecx
mov ebx, dword [esp + 0x24]
shr edx, 5
imul eax, edx, 0x64
mov edx, dword [esp + 0x14]
mov dword [edi + 0x18], ecx
sub ecx, eax
lea eax, [ecx + 1]
cmp dword [esp + 0xc], eax
mov dword [esp + 0x20], eax
sbb eax, eax
add eax, 2
mov dword [edx + 0x44], eax
cmp dword [0x44f7b8], 5
jbe 0x40379a
mov eax, dword [0x44f7c0]
and eax, 0x100
or eax, 0
je 0x40379a
mov eax, dword [0x44f7c8]
xor edi, edi
and eax, 0x100
cmp eax, dword [0x44f7c8]
jne 0x40379a
cmp edi, dword [0x44f7cc]
jne 0x40379a
add dword [ebx + 0xa0], 1
mov edx, dword [ebx + 0x74]
adc dword [ebx + 0xa4], edi
mov ecx, dword [ebx + 0xa0]
mov eax, dword [ebx + 0xa4]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x50], edx
bswap eax
bswap ecx
mov dword [edi + 0x54], edx
mov edx, edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [edx + 0x58], 0
mov dword [edx + 0x5c], eax
mov dword [edx + 0x60], ecx
cmp dword [0x44f7b8], 5
jbe 0x40379a
mov eax, dword [0x44f7c0]
and eax, 0x100
or eax, 0
je 0x40379a
mov eax, dword [0x44f7c8]
xor edi, edi
and eax, 0x100
cmp eax, dword [0x44f7c8]
jne 0x40379a
cmp edi, dword [0x44f7cc]
jne 0x40379a
lea eax, [ebx + 0x74]
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], eax
mov edx, str.Read
mov eax, dword [esp + 0x20]
mov dword [esp + 0x98], 4
mov dword [esp + 0x9c], edi
cmp eax, dword [esp + 0xc]
ja 0x403614
mov edx, str.Write
mov ecx, edx
lea edi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403620
sub ecx, edi
mov dword [esp + 0xa0], edx
mov edi, dword [esp + 0x10]
mov dword [esp + 0xa4], 0
mov dword [esp + 0xac], 0
lea eax, [ecx + 1]
mov dword [esp + 0x38], edi
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x38]
mov dword [esp + 0xb0], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 8
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 4
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 8
mov dword [esp + 0xdc], 0
mov al, byte [0x44bc07]
mov ecx, 0x44bad0
movzx eax, word [0x44bad1]
sub ecx, str.ETW0
mov dword [esp + 0x64], eax
or ecx, 0xb000000
mov eax, dword [0x44f7bc]
mov dword [esp + 0x70], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], 0x100
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], 0
movzx eax, word [eax]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
push eax
push 7
push 0
lea eax, [esp + 0x5c]
mov dword [esp + 0x88], 2
push eax
lea eax, [esp + 0x70]
mov dword [esp + 0x90], 0x44badb
push eax
push dword [0x44f7d4]
mov dword [esp + 0x9c], 0
push dword [0x44f7d0]
mov dword [esp + 0xa4], 0x3b
mov dword [esp + 0xa8], 1
call dword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov edx, dword [esp + 0x14]
jmp 0x40379e
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
cmp byte [eax + 0x35], 0
je 0x4037c4
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
mov dword [edx + 0x48], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 0x4c], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x44]
cmp ecx, dword [esp + 0xc]
jbe 0x4038af
imul ecx, edi, 0xd8
cmp eax, 2
mov eax, dword [ebx + 8]
mov dword [esp + 0x30], ecx
jne 0x40385a
mov edi, dword [esp + 0x30]
mov ecx, dword [esi + 0x18]
add edi, 0x18
mov edx, dword [esi + 0xc0]
add eax, edi
cmp dword [esi + 0x40], 2
mov edi, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
jne 0x403835
imul ecx, dword [esp + 0x1c]
add eax, edx
push eax
mov eax, dword [ebx + 0x38]
add ecx, dword [eax + edi*4]
push ecx
call dword [0x4505ac]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
jmp 0x4039cf
imul ecx, dword [esp + 0x1c]
add eax, edx
push eax
mov eax, dword [ebx + 0x38]
add ecx, dword [eax + edi*4]
push ecx
call fcn.00426c90
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
jmp 0x4039cf
mov ecx, dword [ecx + eax + 0x18]
mov eax, dword [ebx + 0x38]
imul ecx, dword [esp + 0x18]
cmp byte [ebp + 0xc], 0
mov edx, dword [esp + 0x14]
mov eax, dword [eax + edi*4]
je 0x403891
push 0x4043f0
add eax, ecx
mov ecx, dword [esi + 0x18]
push edx
push ecx
push eax
mov eax, dword [ebx + 0x14]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
jmp 0x4039cb
add eax, ecx
mov ecx, dword [esp + 0x2c]
push edx
push ecx
mov ecx, dword [esi + 0x18]
push ecx
push eax
mov eax, dword [ebx + 0x14]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4039cb
cmp eax, 2
jne 0x403971
cmp dword [esi + 0x40], 2
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc0]
mov dword [esp + 0xc], ecx
push eax
jne 0x4038fa
push ecx
push dword [esp + 0x20]
mov ecx, ebx
push edi
call fcn.0041cfb0
add esp, 4
push eax
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x14]
push eax
call dword [0x4505ac]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
jmp 0x4039cf
push dword [esp + 0x1c]
mov ecx, ebx
push edi
call fcn.0041cfb0
push eax
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x14]
push eax
call fcn.00426c90
mov eax, dword [esi + 0x48]
add esp, 0xc
sub eax, 1
je 0x403952
sub eax, 1
je 0x40392e
sub eax, 1
jne 0x403966
push 1
jmp 0x403930
push 0
push dword [esi + 0x18]
mov eax, dword [esi + 0xc0]
add eax, dword [esp + 0x48]
push eax
push dword [esi + 0x4c]
call dword [0x45059c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
jmp 0x4039cf
mov eax, dword [esi + 0xc0]
push dword [esi + 0x18]
add eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
jmp 0x4039cf
cmp byte [ebp + 0xc], 0
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + edi*4]
mov dword [esp + 0xc], eax
je 0x4039a7
push 0x4043f0
push edx
push dword [esi + 0x18]
push ecx
push dword [esp + 0x28]
mov ecx, ebx
push edi
call fcn.0041cfb0
add esp, 4
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
jmp 0x4039cb
mov ecx, dword [esp + 0x2c]
push edx
push ecx
push dword [esi + 0x18]
push ecx
push dword [esp + 0x28]
mov ecx, ebx
push edi
call fcn.0041cfb0
add esp, 4
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x28], eax
mov ecx, dword [ebx + 0x54]
mov eax, 0x92492493
sub ecx, dword [ebx + 0x50]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x403a34
mov ecx, dword [ebx + 0x50]
lea eax, [edi*8]
sub eax, edi
cmp byte [ecx + eax*8], 0
lea edi, [ecx + eax*8]
je 0x403a34
mov eax, dword [esi + 0x18]
add dword [edi + 8], eax
mov eax, dword [edi + 0x30]
adc dword [edi + 0xc], 0
inc eax
cmp byte [edi + 2], 0
mov dword [edi + 0x30], eax
je 0x403a34
cmp eax, dword [edi + 0x2c]
jb 0x403a34
mov dword [edi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
add eax, dword [edi + 0x28]
mov dword [edi + 0x20], eax
adc edx, 0
mov dword [edi + 0x24], edx
cmp dword [esp + 0x28], 0
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.00423c89
mov esp, ebp
pop ebp
ret