Function at 0x434630
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
mov eax, dword [0x62acc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x4ac], eax
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0
je 0x43466e
mov eax, 0x40000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebx + 0x2c], 0
je 0x43468a
mov eax, 0x50000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x4c0], eax
cmp dword [ebx], eax
je 0x4346ab
cmp edi, 4
mov edx, 0xc
cmovne eax, edx
mov dword [ebp - 0x4c0], eax
push esi
push ecx
lea eax, [ebp - 0x134]
push 0x104
push eax
call fcn.00503df9
mov cl, byte [ebp - 0x134]
add esp, 0xc
test cl, cl
je 0x435282
lea eax, [ebp - 0x134]
cmp cl, 0x5c
jne 0x4346dd
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4346d5
cmp edi, 4
jne 0x434712
lea ecx, [ebp - 0x134]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4346f3
sub ecx, edx
cmp byte [ebp + ecx - 0x135], 0x2f
je 0x434712
mov byte [ebp - 0x4a5], 1
jmp 0x434807
mov byte [ebp - 0x4a5], 0
mov dword [ebp - 0x4b4], 8
cmp edi, 4
je 0x434807
lea ecx, [ebp - 0x134]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434735
sub ecx, edx
lea esi, [ebp - 0x134]
add esi, ecx
lea eax, [ebp - 0x134]
cmp esi, eax
jbe 0x434760
cmp byte [esi], 0x2e
je 0x434773
dec esi
lea eax, [ebp - 0x134]
cmp esi, eax
ja 0x434750
lea eax, [ebp - 0x134]
cmp esi, eax
jne 0x434773
cmp byte [esi], 0x2e
jne 0x43480f
push 0x5a372c
push esi
call fcn.00511a4e
add esp, 8
test eax, eax
je 0x434807
push str..zip
push esi
call fcn.00511a4e
add esp, 8
test eax, eax
je 0x434807
push str..zoo
push esi
call fcn.00511a4e
add esp, 8
test eax, eax
je 0x434807
push str..arc
push esi
call fcn.00511a4e
add esp, 8
test eax, eax
je 0x434807
push str..lzh
push esi
call fcn.00511a4e
add esp, 8
test eax, eax
je 0x434807
push str..arj
push esi
call fcn.00511a4e
add esp, 8
test eax, eax
je 0x434807
push 0x5a3758
push esi
call fcn.00511a4e
add esp, 8
test eax, eax
je 0x434807
push str..tgz
push esi
call fcn.00511a4e
add esp, 8
test eax, eax
jne 0x43480f
xor eax, eax
mov dword [ebp - 0x4b4], eax
cmp edi, 2
jne 0x4348d5
mov eax, dword [ebp - 0x4ac]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x84], 0
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x74], 0
test eax, eax
je 0x434a1c
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [0x5a0304]
mov dword [ebp - 0x4ac], eax
cmp eax, 0xffffffff
jne 0x434898
mov esi, 0x200
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
push 0
push eax
mov ecx, ebx
call fcn.004379c0
mov esi, eax
test esi, esi
je 0x4348c9
push dword [ebp - 0x4ac]
call dword [0x5a026c]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebx + 0x80], 1
jmp 0x434b36
cmp edi, 1
jne 0x434907
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x4ac]
call fcn.004379c0
mov esi, eax
test esi, esi
je 0x434b36
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
cmp edi, 3
jne 0x434a36
mov eax, dword [ebp - 0x4ac]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x84], eax
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x88], ecx
mov dword [ebx + 0x8c], 0
test eax, eax
je 0x434a1c
test ecx, ecx
je 0x434a1c
lea eax, [ebp - 0x144]
mov dword [ebx + 0x4c], 0x80000000
push eax
mov dword [ebx + 0x70], ecx
mov byte [ebx + 0x6c], 1
call dword [0x5a0284]
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x144]
push eax
call dword [0x5a02c4]
mov eax, dword [ebp - 0x4bc]
mov ecx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4c8], eax
lea eax, [ebp - 0x4d0]
push eax
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x4c4], ecx
push eax
call dword [0x5a02c8]
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x4d0]
push eax
call dword [0x5a02d0]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [ebp - 0x4b8]
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004ff260
movzx ecx, word [ebp - 0x4b0]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x60], eax
movzx eax, word [ebp - 0x4ac]
jmp 0x434b25
mov esi, 0x10000
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
cmp edi, 4
jne 0x435282
lea eax, [ebp - 0x144]
mov dword [ebx + 0x7c], 0
push eax
mov dword [ebx + 0x84], 0
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x4c], 0x41c00010
mov dword [ebx + 0x70], 0
mov byte [ebx + 0x6c], 0
call dword [0x5a0284]
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x144]
push eax
call dword [0x5a02c4]
mov eax, dword [ebp - 0x4bc]
mov ecx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4c8], eax
lea eax, [ebp - 0x4d0]
push eax
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x4c4], ecx
push eax
call dword [0x5a02c8]
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x4d0]
push eax
call dword [0x5a02d0]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [ebp - 0x4b8]
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004ff260
movzx ecx, word [ebp - 0x4ac]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x60], eax
movzx eax, word [ebp - 0x4b0]
shl ecx, 0x10
or ecx, eax
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], ecx
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x54], edx
push 0x614196
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x148], 0
push 0x104
push eax
call fcn.00503df9
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x35c]
push 0x104
push eax
call fcn.00503df9
lea ecx, [ebp - 0x35c]
add esp, 0x18
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434b80
sub ecx, edx
mov dword [ebp - 0x48c], ecx
cmp byte [ebp - 0x4a5], al
je 0x434bb6
push 0x5a3764
lea eax, [ebp - 0x35c]
push 0x104
push eax
call fcn.005111bf
add esp, 0xc
inc dword [ebp - 0x48c]
push 0x614196
lea eax, [ebp - 0x258]
push 0x104
push eax
call fcn.00503df9
xor eax, eax
mov dword [ebp - 0x360], 0
mov word [ebp - 0x47a], ax
add esp, 0xc
cmp dword [ebx], 0
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x49c], eax
mov eax, 8
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x4a4], 0x140b17
mov dword [ebp - 0x498], 0
mov word [ebp - 0x4a0], ax
je 0x434c3f
cmp edi, 4
je 0x434c3f
mov eax, 9
mov word [ebp - 0x4a0], ax
mov word [ebp - 0x478], ax
mov eax, dword [ebp - 0x4b4]
mov word [ebp - 0x49e], ax
test eax, eax
jne 0x434c6e
mov ecx, dword [ebx + 0x70]
test ecx, ecx
js 0x434c6e
mov eax, dword [ebp - 0x4c0]
add eax, ecx
mov dword [ebp - 0x494], eax
jmp 0x434c78
mov dword [ebp - 0x494], 0
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x490], eax
xor eax, eax
mov word [ebp - 0x47c], ax
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x474], eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x5c]
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x18]
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 0x368], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x364], eax
mov al, byte [ebx + 0x58]
mov byte [ebp - 0x13], al
mov eax, edx
shrd ecx, eax, 8
mov eax, edx
mov dword [ebp - 0x18], 0xd5455
mov byte [ebp - 0x12], cl
mov ecx, dword [ebx + 0x58]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x58]
shrd eax, edx, 0x18
mov edx, dword [ebx + 0x54]
mov dword [ebp - 0x4ac], eax
mov byte [ebp - 0x10], al
mov al, byte [ebx + 0x50]
mov byte [ebp - 0xf], al
mov eax, edx
mov byte [ebp - 0x11], cl
mov ecx, dword [ebx + 0x50]
shrd ecx, eax, 8
mov eax, edx
mov byte [ebp - 0x14], 7
mov byte [ebp - 0xe], cl
mov ecx, dword [ebx + 0x50]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x50]
shrd eax, edx, 0x18
mov edx, dword [ebx + 0x64]
movq xmm0, qword [ebp - 0x18]
mov byte [ebp - 0xc], al
mov al, byte [ebx + 0x60]
mov byte [ebp - 0xb], al
mov eax, edx
mov byte [ebp - 0xd], cl
mov ecx, dword [ebx + 0x60]
shrd ecx, eax, 8
mov eax, edx
movq qword [ebp - 0x24], xmm0
mov byte [ebp - 0xa], cl
mov ecx, dword [ebx + 0x60]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x60]
shrd eax, edx, 0x18
push ebx
mov byte [ebp - 8], al
mov eax, dword [ebp - 0x4ac]
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0x4a4]
push 0x438980
push eax
mov dword [ebp - 0x488], 0x11
mov dword [ebp - 0x484], 9
mov byte [ebp - 9], cl
mov byte [ebp - 0x22], 5
call fcn.004382e0
add esp, 0xc
test eax, eax
je 0x434dc3
cmp byte [ebx + 0x80], 0
je 0x434d9e
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x434d9e
push eax
call dword [0x5a026c]
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x70], eax
pop esi
pop edi
mov eax, 0x400
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x488]
add eax, 0x1e
add eax, dword [ebp - 0x48c]
add dword [ebx + 0x18], eax
cmp dword [ebx + 0x14], 0
je 0x434e15
cmp byte [ebx + 0x80], 0
je 0x434df2
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x434df2
push eax
call dword [0x5a026c]
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x14]
pop esi
pop edi
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x70], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebx + 0x30], 0x12345678
mov dword [ebx + 0x34], 0x23456789
mov dword [ebx + 0x38], 0x34567890
mov edx, dword [ebx]
test edx, edx
je 0x434e7b
mov al, byte [edx]
test al, al
je 0x434e7b
mov ecx, dword [ebx + 0x30]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a31d8]
movzx eax, cl
add eax, dword [ebx + 0x34]
imul eax, eax, 0x8088405
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebx + 0x38]
inc eax
mov dword [ebx + 0x34], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a31d8]
mov dword [ebx + 0x38], ecx
add edx, 1
jne 0x434e30
cmp byte [0x9116b4], 0
jne 0x434e9d
call dword [0x5a01f0]
mov esi, eax
call dword [0x5a04e0]
xor eax, esi
push eax
call fcn.00508b07
add esp, 4
xor esi, esi
nop
call fcn.00508ae6
sar eax, 7
mov byte [ebp + esi - 0x30], al
inc esi
cmp esi, 0xc
jl 0x434ea0
mov eax, dword [ebp - 0x49c]
shr eax, 8
xor edi, edi
mov byte [ebp - 0x25], al
mov al, byte [ebp + edi - 0x30]
mov ecx, dword [ebx + 0x30]
mov byte [ebp - 0x4a5], al
movsx eax, al
xor eax, ecx
mov edx, dword [ebx + 0x38]
movzx eax, al
mov esi, edx
shr ecx, 8
and esi, 0xfffd
or esi, 2
xor ecx, dword [eax*4 + 0x5a31d8]
movzx eax, cl
add eax, dword [ebx + 0x34]
imul eax, eax, 0x8088405
mov dword [ebx + 0x30], ecx
inc eax
mov dword [ebx + 0x34], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x5a31d8]
mov eax, esi
xor eax, 1
mov dword [ebx + 0x38], edx
imul eax, esi
shr eax, 8
xor al, byte [ebp - 0x4a5]
mov byte [ebp + edi - 0x30], al
inc edi
cmp edi, 0xc
jl 0x434ec0
cmp dword [ebx], 0
mov edi, dword [ebp + 0x14]
je 0x434f4e
cmp edi, 4
je 0x434f4e
push 0xc
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.004389a0
add dword [ebx + 0x18], 0xc
xor esi, esi
cmp dword [ebx], esi
je 0x434f5f
cmp edi, 4
je 0x434f5f
mov byte [ebx + 0x2d], 1
jmp 0x434f6c
mov byte [ebx + 0x2d], 0
cmp edi, 4
je 0x43506b
mov eax, dword [ebp - 0x4b4]
cmp eax, 8
jne 0x434f8c
lea eax, [ebp - 0x4a4]
mov ecx, ebx
push eax
call fcn.004370e0
mov esi, eax
jmp 0x435071
test eax, eax
jne 0x435071
mov dword [ebp - 0x4ac], eax
lea edi, [ebx + 0x94]
mov ecx, dword [ebx + 0x84]
mov edx, 0x4000
test ecx, ecx
je 0x434fec
mov eax, dword [ebx + 0x8c]
mov esi, dword [ebx + 0x88]
cmp eax, esi
jae 0x435058
sub esi, eax
cmp esi, edx
cmova esi, edx
add eax, ecx
push esi
push eax
push edi
call fcn.00500630
add dword [ebx + 0x8c], esi
add dword [ebx + 0x74], esi
push esi
push edi
push dword [ebx + 0x78]
call fcn.004360e0
add esp, 0x18
jmp 0x435023
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x435051
push 0
lea ecx, [ebp - 0x4b0]
push ecx
push 0x4000
push edi
push eax
call dword [0x5a0164]
test eax, eax
je 0x435058
mov esi, dword [ebp - 0x4b0]
add dword [ebx + 0x74], esi
push esi
push edi
push dword [ebx + 0x78]
call fcn.004360e0
add esp, 0xc
mov dword [ebx + 0x78], eax
test esi, esi
je 0x435058
cmp esi, 0xffffffff
je 0x435058
push esi
push edi
mov ecx, ebx
call fcn.004389a0
cmp eax, esi
jne 0x435047
add dword [ebp - 0x4ac], esi
jmp 0x434fa0
mov edi, dword [ebp + 0x14]
mov esi, 0x60000
jmp 0x435071
mov dword [ebx + 0x14], 0x1000000
mov eax, dword [ebp - 0x4ac]
xor esi, esi
mov edi, dword [ebp + 0x14]
mov dword [ebx + 0x90], eax
jmp 0x435071
mov dword [ebx + 0x90], esi
cmp byte [ebx + 0x80], 0
mov byte [ebx + 0x2d], 0
je 0x43508c
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x43508c
push eax
call dword [0x5a026c]
mov ecx, dword [ebx + 0x90]
add dword [ebx + 0x18], ecx
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x74]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x70], edx
test eax, eax
jne 0x435287
test esi, esi
jne 0x434dab
add ecx, dword [ebp - 0x4c0]
cmp dword [ebp - 0x494], ecx
mov eax, dword [ebx + 0x78]
sete byte [ebp - 0x4a5]
mov dword [ebp - 0x498], eax
cmp byte [ebx + 0x1c], 0
mov dword [ebp - 0x494], ecx
mov dword [ebp - 0x490], edx
je 0x43517a
cmp dword [ebx], esi
je 0x4350f4
cmp edi, 4
jne 0x43517a
mov eax, dword [ebp - 0x4b4]
mov word [ebp - 0x49e], ax
mov ax, word [ebp - 0x4a0]
test al, 1
jne 0x43511b
mov ecx, 0xfff7
and ax, cx
mov word [ebp - 0x4a0], ax
mov word [ebp - 0x478], ax
mov ecx, ebx
mov eax, dword [ebp - 0x470]
sub eax, dword [ebx + 0x10]
push eax
call fcn.00437b50
test al, al
je 0x435162
push ebx
lea eax, [ebp - 0x4a4]
push 0x438980
push eax
call fcn.004382e0
add esp, 0xc
test eax, eax
jne 0x434dab
push dword [ebx + 0x18]
mov ecx, ebx
call fcn.00437b50
test al, al
jne 0x4351cc
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x4b4]
cmp word [ebp - 0x49e], ax
jne 0x43526a
test eax, eax
jne 0x43519d
cmp byte [ebp - 0x4a5], al
je 0x43526a
push ebx
lea eax, [ebp - 0x4a4]
push 0x438980
push eax
call fcn.004381c0
add esp, 0xc
test eax, eax
jne 0x434dab
mov ax, word [ebp - 0x478]
add dword [ebx + 0x18], 0x10
mov word [ebp - 0x4a0], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x435287
push dword [ebp - 0x484]
call fcn.004ff24d
push dword [ebp - 0x484]
mov esi, eax
push dword [ebp - 0x364]
push esi
call fcn.00500630
push 0x360
mov dword [ebp - 0x364], esi
call fcn.004fee49
mov edx, eax
lea esi, [ebp - 0x4a4]
mov ecx, 0xd8
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x44]
add esp, 0x14
test ecx, ecx
jne 0x435239
pop esi
pop edi
mov dword [ebx + 0x44], edx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx + 0x35c]
test eax, eax
je 0x43524f
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x435243
pop esi
pop edi
mov dword [ecx + 0x35c], edx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
pop esi
pop edi
mov eax, 0x4000000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x10000
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10