Function at 0x401740
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8cc
mov eax, dword [0x44d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x8cc], ecx
mov dword [0x44d8d0], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test eax, eax
jns 0x4017bf
xor eax, eax
cmp dword [eax*4 + 0x44d8d4], 0
je 0x4017a0
inc eax
cmp eax, 0x10
jl 0x401770
mov dword [0x44d8d0], 0xffffffff
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419170
mov esp, ebp
pop ebp
ret 0x10
mov dword [0x44d8d0], eax
test eax, eax
jns 0x4017bf
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419170
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 0x8a8], 0
test ecx, ecx
jne 0x401814
mov al, byte [ebx]
mov cl, 1
cmp al, 0x5c
je 0x4017d6
cmp al, 0x2f
jne 0x4017d8
xor cl, cl
test al, al
je 0x4017e2
cmp byte [ebx + 1], 0x3a
je 0x401814
test cl, cl
je 0x401814
lea eax, [ebp - 0x8a8]
push 0x819
push eax
call fcn.0041d44e
lea edi, [ebp - 0x8a8]
add esp, 8
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x401801
mov ax, word [0x442e28]
mov word [edi], ax
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x401816
lea edi, [ebp - 0x8a8]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401826
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x8f], al
lea eax, [ebp - 0x8a8]
push 0x4432fc
push eax
call fcn.0041c471
mov edi, eax
add esp, 8
test edi, edi
je 0x401b8a
mov esi, dword [ebp - 0x8cc]
test esi, esi
jle 0x401876
push 0
push esi
push edi
call fcn.004201f0
add esp, 0xc
push edi
push 0x20
lea eax, [ebp - 0x8c8]
push 1
push eax
call fcn.00420477
push edi
call fcn.0041c4fe
add esp, 0x14
test esi, esi
jle 0x4018a4
mov eax, dword [0x44d8d0]
mov dword [0x44d980], eax
mov dword [0x44d984], esi
mov edi, dword [ebp - 0x8bc]
cmp edi, 0x20
jb 0x401b8a
push edi
call fcn.0041efc7
mov ebx, eax
lea eax, [ebp - 0x8a8]
push 0x4432fc
push eax
call fcn.0041c471
add esp, 0xc
mov dword [ebp - 0x8cc], eax
test eax, eax
je 0x401b8a
test esi, esi
jle 0x4018f3
push 0
push esi
push eax
call fcn.004201f0
mov eax, dword [ebp - 0x8cc]
add esp, 0xc
test ebx, ebx
je 0x401908
test edi, edi
jle 0x401908
push eax
push edi
push 1
push ebx
call fcn.00420477
add esp, 0x10
push dword [ebp - 0x8cc]
call fcn.0041c4fe
add esp, 4
cmp byte [ebx], 0x44
jne 0x401b69
cmp byte [ebx + 1], 0x50
jne 0x401b69
cmp byte [ebx + 2], 0x4d
jne 0x401b69
cmp byte [ebx + 3], 0x32
jne 0x401b69
mov eax, dword [ebx + 0x18]
add eax, dword [ebp + 0xc]
mov esi, dword [0x44d8d0]
push eax
lea eax, [ebp - 0x88]
push str.HSP3Encode:_d
push eax
call fcn.00401150
add esp, 0xc
cmp esi, 0xf
ja 0x4019bb
mov eax, dword [esi*4 + 0x44d8d4]
test eax, eax
je 0x401982
push eax
call fcn.0041efc2
add esp, 4
mov dword [esi*4 + 0x44d8d4], 0
mov edi, dword [esi*4 + 0x44d914]
test edi, edi
je 0x4019bb
mov eax, dword [edi]
test eax, eax
je 0x4019a2
push eax
call fcn.0041efc2
add esp, 4
mov dword [edi], 0
push 0x12c
push edi
call fcn.004193ff
add esp, 8
mov dword [esi*4 + 0x44d914], 0
push 0x12c
call fcn.0041917e
lea edx, [ebp - 0x88]
mov dword [ebp - 0x8cc], eax
add esp, 4
lea ecx, [edx + 1]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0x128], 1
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0xffffffff
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
mov dword [esi*4 + 0x44d914], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x401a18
sub edx, ecx
xor esi, esi
or ecx, 0xffffffff
test edx, edx
jle 0x401a4c
nop word [eax + eax]
movsx eax, byte [ebp + esi - 0x88]
inc esi
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x442eb0]
cmp esi, edx
jl 0x401a30
not ecx
movzx edi, cx
sar ecx, 0x10
movzx esi, cx
mov ecx, dword [ebp - 0x8cc]
push esi
push edi
call fcn.00408bb0
mov ecx, dword [ebp - 0x8cc]
lea eax, [esi + edi]
mov dword [ecx + 0x14], eax
mov eax, dword [0x44d8d0]
mov ecx, dword [ebp + 0xc]
mov dword [eax*4 + 0x44d8d4], ebx
mov eax, dword [0x44d8d0]
mov esi, dword [eax*4 + 0x44d914]
test ecx, ecx
jle 0x401acd
mov eax, dword [ebx + 0x18]
add eax, ecx
imul eax, eax, 0x41c64e6d
add eax, 0x3039
mov dword [esi + 0x128], eax
shr eax, 0x10
and eax, 0x7fff
add eax, dword [esi + 0x14]
cmp dword [ebx + 0x1c], eax
je 0x401acd
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419170
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi]
test eax, eax
je 0x401ae2
push eax
call fcn.0041efc2
add esp, 4
mov dword [esi], 0
lea ecx, [ebp - 0x8a8]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401af0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0041efc7
add esp, 4
mov dword [esi], eax
lea edx, [ebp - 0x8a8]
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x401b10
mov edx, dword [0x44d8d0]
cmp edx, 0xf
ja 0x401b32
mov eax, dword [edx*4 + 0x44d8d4]
jmp 0x401b34
xor eax, eax
xor ecx, ecx
cmp dword [ebx + 4], ecx
jle 0x401b54
add eax, 0x22
nop
mov word [eax], dx
lea eax, [eax + 0x20]
inc ecx
cmp ecx, dword [ebx + 4]
jge 0x401b54
mov edx, dword [0x44d8d0]
jmp 0x401b40
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419170
mov esp, ebp
pop ebp
ret 0x10
push ebx
call fcn.0041efc2
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419170
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 0xfffffffe
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419170
mov esp, ebp
pop ebp
ret 0x10