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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x120
mov eax, dword [0x526014]
xor eax, ebp
mov dword [esp + 0x118], eax
cmp dword [ecx + 0x10], 0
je 0x436201
cmp byte [ecx + 0xb], 0
mov dword [esp + 0x1c], ecx
js 0x436208
mov eax, ecx
jmp 0x43620a
xor ebx, ebx
jmp 0x436d67
mov eax, dword [ecx]
sub esp, 0x1c
movdqa xmm0, xmmword [0x50e240]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
test eax, eax
je 0x43625b
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp edi, 0xffffffff
je 0x436d81
call fcn.00471300
mov esi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea eax, [esi + 1]
cmp eax, 2
jb 0x436d54
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], ebx
mov eax, dword [esp + 0x1c]
movups xmm0, xmmword [eax + 0x24]
movups xmmword [esp + 0x108], xmm0
movdqu xmm0, xmmword [eax + 0x14]
movdqu xmmword [esp + 0xf8], xmm0
mov esi, dword [eax + 0x40]
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
test esi, esi
je 0x4362fd
cmp esi, 0x20000000
jae 0x436d94
lea eax, [esi*8]
push eax
call fcn.00493d3d
add esp, 4
lea ecx, [eax + esi*8]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
xor eax, eax
lea ecx, [esp + 0x98]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [esp + 0x18], esi
push esi
call fcn.004374e0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x38]
add eax, 0x3c
mov ebx, 0
mov dword [esp + 0x2c], eax
cmp edx, eax
je 0x436723
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x20], edi
movzx ecx, byte [edx + 0x1b]
test cl, cl
jns 0x436346
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x24], edx
xor eax, eax
mov esi, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
add esi, 5
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ecx
je 0x436703
js 0x436da2
push esi
call fcn.00493d3d
add esp, 4
mov ebx, eax
mov dword [esp + 0x50], eax
lea edi, [eax + esi]
mov dword [esp + 0x58], edi
push esi
push 0
push eax
call fcn.00497b10
add esp, 0xc
mov dword [esp + 0x54], edi
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov ecx, dword [esp + 0x10]
mov eax, ecx
mov dword [ebx], ecx
add ebx, 4
mov esi, dword [esp + 0x24]
cmp byte [esi + 0x1b], 0
jns 0x4363b9
mov ecx, dword [esi + 0x10]
jmp 0x4363bc
lea ecx, [esi + 0x10]
push eax
push ecx
push ebx
call fcn.00497010
add esp, 0xc
mov ecx, dword [esp + 4]
mov eax, ecx
not eax
add edi, eax
mov byte [ecx + edi], 0
movzx eax, byte [esi + 0x27]
test al, al
jns 0x4363e0
mov eax, dword [esi + 0x20]
xor edi, edi
mov ebx, eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
add ebx, 5
mov dword [esp + 0x10], eax
je 0x436714
js 0x436dab
push ebx
call fcn.00493d3d
add esp, 4
mov edi, eax
add eax, ebx
push ebx
mov ebx, eax
push 0
push edi
call fcn.00497b10
add esp, 0xc
mov dword [esp + 0x14], ebx
lea eax, [esi + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [edi], edx
lea ecx, [edi + 4]
cmp byte [eax + 0xb], 0
jns 0x43643f
mov eax, dword [eax]
push edx
push eax
push ecx
call fcn.00497010
add esp, 0xc
mov eax, edi
not eax
mov ecx, dword [esp + 0x14]
add ecx, eax
mov byte [edi + ecx], 0
mov eax, dword [esp + 4]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 8]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edi
xor edi, edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], edi
mov eax, dword [esp + 0x9c]
cmp eax, dword [esp + 0xa0]
jae 0x436543
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov ecx, dword [esp + 0xc0]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc8]
mov dword [eax + 8], ecx
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov ecx, dword [esp + 0xcc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0xd0]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0xd4]
mov dword [eax + 0x14], ecx
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], edi
add eax, 0x18
mov dword [esp + 0x9c], eax
jmp 0x436572
lea ecx, [esp + 0x98]
lea eax, [esp + 0xc0]
push eax
call fcn.00437620
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x436572
mov dword [esp + 0xd0], eax
push eax
call fcn.00493d6d
add esp, 4
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x43658d
mov dword [esp + 0xc4], eax
push eax
call fcn.00493d6d
add esp, 4
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4365a1
push eax
call fcn.00493d6d
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4365b2
push eax
call fcn.00493d6d
add esp, 4
mov ebx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
cmp ebx, eax
jae 0x4365d8
mov dword [ebx + 4], edi
mov dword [ebx], edi
add ebx, 8
mov dword [esp + 0xa8], ebx
jmp 0x436693
mov ecx, dword [esp + 0xa4]
mov dword [esp + 4], ecx
sub ebx, ecx
mov edi, ebx
sar edi, 3
lea ecx, [edi + 1]
cmp ecx, 0x20000000
jae 0x436d88
sub eax, dword [esp + 4]
mov edx, eax
sar edx, 2
cmp edx, ecx
cmovb edx, ecx
cmp eax, 0x7ffffff8
mov eax, 0x1fffffff
cmovae edx, eax
test edx, edx
mov dword [esp + 8], edx
je 0x43663c
cmp edx, 0x20000000
jae 0x436d94
lea eax, [edx*8]
push eax
call fcn.00493d3d
add esp, 4
mov ecx, eax
jmp 0x43663e
xor ecx, ecx
xor eax, eax
mov dword [ecx + edi*8 + 4], eax
mov dword [ecx + edi*8], eax
test ebx, ebx
jle 0x43665e
push ebx
mov eax, dword [esp + 8]
push eax
push ecx
mov ebx, ecx
call fcn.00497010
mov ecx, ebx
add esp, 0xc
mov eax, dword [esp + 8]
lea eax, [ecx + eax*8]
lea ebx, [ecx + edi*8]
add ebx, 8
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], eax
cmp dword [esp + 4], 0
je 0x436693
push dword [esp + 4]
call fcn.00493d6d
add esp, 4
mov edx, dword [esp + 0x20]
mov dword [ebx - 8], edx
mov ecx, dword [esp + 0x9c]
mov eax, dword [ecx - 0x14]
sub eax, dword [ecx - 0x18]
add eax, edx
mov ecx, dword [esp + 0xa8]
mov dword [ecx - 4], eax
mov ecx, dword [esp + 0x9c]
mov edi, dword [ecx - 8]
sub edi, dword [ecx - 0xc]
mov ebx, dword [esp + 0x30]
add ebx, dword [ecx - 0x14]
add ebx, edi
sub ebx, dword [ecx - 0x18]
mov edx, dword [esi + 4]
test edx, edx
je 0x4366dd
mov ecx, edx
mov edx, dword [edx]
test edx, edx
jne 0x4366d3
jmp 0x4366f3
mov ecx, dword [esi + 8]
cmp dword [ecx], esi
je 0x4366f3
add esi, 8
mov edx, dword [esi]
lea esi, [edx + 8]
mov ecx, dword [edx + 8]
cmp dword [ecx], edx
jne 0x4366e7
add edi, eax
mov edx, ecx
cmp ecx, dword [esp + 0x2c]
jne 0x436337
jmp 0x436723
mov dword [esp + 8], 0
xor edi, edi
xor ebx, ebx
jmp 0x43639b
xor ebx, ebx
mov dword [esp + 0x14], 0
jmp 0x43642b
mov eax, dword [esp + 0x18]
lea eax, [ebx + eax*8]
xor edi, edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov ecx, 0
add eax, 0x38
je 0x436785
js 0x436dab
push eax
mov edi, eax
call fcn.00493d3d
add esp, 4
mov esi, eax
mov dword [esp + 0x8c], eax
mov eax, edi
add edi, esi
mov dword [esp + 0x94], edi
push eax
push 0
push esi
call fcn.00497b10
mov ecx, esi
add esp, 0xc
mov dword [esp + 0x90], edi
mov esi, dword [esp + 0x18]
lea eax, [ebx + esi*8]
add eax, 4
mov dword [ecx], 1
movups xmm0, xmmword [esp + 0x108]
movups xmmword [ecx + 4], xmm0
movdqu xmm0, xmmword [esp + 0xf8]
movdqu xmmword [ecx + 0x14], xmm0
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], 0x34
xor eax, eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], esi
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
sub ebx, eax
mov dword [esp + 8], ecx
add ecx, 0x38
push ebx
push eax
push ecx
call fcn.00497010
add esp, 0xc
test esi, esi
je 0x436869
add ebx, 0x38
lea eax, [esi - 1]
mov dword [esp + 4], eax
mov edx, dword [esp + 8]
xor edi, edi
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + edi]
mov esi, dword [eax + edi + 4]
sub esi, ecx
add edx, ebx
push esi
push ecx
push edx
call fcn.00497010
add esp, 0xc
add esi, ebx
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + edi + 0xc]
mov ebx, dword [eax + edi + 0x10]
sub ebx, ecx
mov eax, dword [esp + 0x8c]
add eax, esi
push ebx
push ecx
push eax
call fcn.00497010
add esp, 0xc
mov eax, dword [esp + 4]
sub eax, 1
jb 0x436859
mov dword [esp + 4], eax
add ebx, esi
mov edx, dword [esp + 0x8c]
add edi, 0x18
jmp 0x4367fa
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
jmp 0x43686d
mov ecx, dword [esp + 8]
lea eax, [esp + 0x80]
mov dword [eax], 0x43500001
mov dword [eax + 8], ecx
mov dword [esp + 8], ecx
sub edi, ecx
mov dword [eax + 4], edi
lea edi, [esp + 0x78]
mov dword [edi], 1
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov ecx, esi
call dword [section..00cfg]
lea eax, [esp + 0xb0]
push 0
push edi
push eax
push 0x40
mov edi, dword [esp + 0x1c]
push edi
push dword [esp + 0x18]
push ebx
call esi
xor ebx, ebx
test eax, eax
je 0x436ca1
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x50]
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
lea ecx, [esp + 0xc0]
mov dword [ecx], 0xffffffff
push ebx
push ecx
push 0x20
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436ca1
cmp dword [esp + 0xc0], 0x20
mov eax, dword [esp + 8]
jne 0x436cc3
mov esi, edi
xor edi, edi
push edi
push edi
push dword [esp + 0x64]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
xor eax, eax
dec eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
cmp dword [esp + 0x58], edi
je 0x436ca7
mov eax, dword [esp + 0x18]
lea eax, [eax*8]
xor ebx, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 4], edi
mov dword [esp + 0xc0], 0xffffffff
push 0
lea eax, [esp + 0xc4]
push eax
push 0xc
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
test eax, eax
je 0x436ca9
cmp dword [esp + 0xc0], 0xc
jne 0x436ca9
cmp ebx, dword [esp + 0x4c]
je 0x4369d6
mov eax, dword [esp + 0x40]
mov dword [ebx + 8], eax
movq xmm0, qword [esp + 0x38]
movq qword [ebx], xmm0
add ebx, 0xc
mov dword [esp + 0x48], ebx
jmp 0x436a9b
mov ecx, dword [esp + 0x44]
sub ebx, ecx
mov eax, ebx
sar eax, 2
imul edi, eax, 0xaaaaaaab
lea eax, [edi + 1]
cmp eax, 0x15555556
jae 0x436d99
lea esi, [edi + edi]
cmp esi, eax
cmovb esi, eax
cmp edi, 0xaaaaaaa
mov eax, 0x15555555
cmovae esi, eax
test esi, esi
mov dword [esp + 8], ecx
je 0x436a38
cmp esi, 0x15555556
jae 0x436d94
lea eax, [esi*4]
lea eax, [eax + eax*2]
push eax
call fcn.00493d3d
add esp, 4
mov ecx, dword [esp + 8]
jmp 0x436a3a
xor eax, eax
lea edx, [edi + edi*2]
mov dword [esp + 0x24], edx
lea edi, [eax + edx*4]
mov edx, dword [esp + 0x40]
mov dword [edi + 8], edx
movq xmm0, qword [esp + 0x38]
movq qword [edi], xmm0
sub edi, ebx
test ebx, ebx
jle 0x436a6e
push ebx
push ecx
push edi
mov ebx, eax
call fcn.00497010
mov eax, ebx
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea edx, [esi + esi*2]
lea edx, [eax + edx*4]
mov esi, dword [esp + 0x24]
lea ebx, [eax + esi*4]
add ebx, 0xc
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edx
test ecx, ecx
je 0x436a97
push ecx
call fcn.00493d6d
add esp, 4
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 4]
cmp dword [esp + 0x38], 0x43500001
jne 0x436ab1
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
inc edi
cmp edi, dword [esp + 0x58]
jb 0x436974
xor ebx, ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x436ca7
push ebx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
dec ecx
mov dword [esp + 0xf0], ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0xe0], xmm0
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
mov eax, esi
lea esi, [esp + 0xbc]
mov dword [esi], ecx
push ebx
push esi
push 0x34
lea ecx, [esp + 0xcc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436c9d
cmp dword [esp + 0xbc], 0x34
jne 0x436c9d
cmp dword [esp + 0xe8], 0x34
jne 0x436c9d
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 0x34]
mov dword [esp + 0xe8], eax
xor ebx, ebx
push ebx
push ebx
push ecx
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0xbc], 0xffffffff
push ebx
push esi
push 0x34
lea eax, [esp + 0xcc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x436c9d
cmp dword [esp + 0xbc], 0x34
jne 0x436c9d
xor ebx, ebx
push ebx
push ebx
push dword [esp + 0xf0]
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x34]
xor ecx, ecx
dec ecx
mov dword [eax], ecx
mov dword [esp + 0xbc], ecx
push ebx
push esi
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436c9d
cmp dword [esp + 0xbc], 4
jne 0x436c9d
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x34], eax
jne 0x436c9d
mov edi, dword [esp + 0xa4]
mov dword [esp + 0xbc], 0xffffffff
push 0
push esi
push dword [esp + 0x1c]
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x436c9d
mov eax, dword [esp + 0x14]
cmp dword [esp + 0xbc], eax
jne 0x436c9d
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xa8]
cmp ecx, edi
je 0x436c58
mov edx, dword [esp + 0x34]
lea eax, [eax + edx*8]
add eax, 4
add dword [edi], eax
add dword [edi + 4], eax
add edi, 8
cmp edi, ecx
jne 0x436c3e
mov eax, dword [esp + 0xe8]
mov edi, dword [esp + 0xa4]
add eax, 4
xor ecx, ecx
push ecx
push ecx
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x34]
shl ebx, 3
mov dword [esp + 0xbc], 0xffffffff
xor eax, eax
push eax
push esi
push ebx
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [esp + 0xbc], ebx
sete bl
and bl, al
mov edi, ebx
jmp 0x436ca9
mov eax, dword [esp + 8]
jmp 0x436cc3
xor edi, edi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x436cba
push eax
call fcn.00493d6d
add esp, 4
mov eax, dword [esp + 0x8c]
mov ebx, edi
test eax, eax
je 0x436cd0
push eax
call fcn.00493d6d
add esp, 4
mov esi, dword [esp + 0x98]
test esi, esi
je 0x436d38
mov edi, dword [esp + 0x9c]
cmp edi, esi
je 0x436d26
mov dword [esp + 4], ebx
mov eax, dword [edi - 0xc]
test eax, eax
je 0x436cfd
mov dword [edi - 8], eax
push eax
call fcn.00493d6d
add esp, 4
lea ebx, [edi - 0x18]
mov eax, dword [edi - 0x18]
test eax, eax
je 0x436d13
mov dword [edi - 0x14], eax
push eax
call fcn.00493d6d
add esp, 4
mov edi, ebx
cmp ebx, esi
jne 0x436cea
mov eax, dword [esp + 0x98]
mov ebx, dword [esp + 4]
jmp 0x436d28
mov eax, esi
mov dword [esp + 0x9c], esi
push eax
call fcn.00493d6d
add esp, 4
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x436d4c
push eax
call fcn.00493d6d
add esp, 4
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
cmp eax, 2
jb 0x436d67
call fcn.00471300
push esi
call fcn.00474440
add esp, 4
mov ecx, dword [esp + 0x118]
xor ecx, ebp
call fcn.004948c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
xor esi, esi
jmp 0x436254
lea ecx, [esp + 0xa4]
call fcn.004be670
call fcn.004a7bd0
lea ecx, [esp + 0x44]
call fcn.004be670
lea ecx, [esp + 0x50]
call fcn.004be670
lea ecx, [esp + 0x8c]
call fcn.004be670
int3