Function at 0x4b1160
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d75b6
mov eax, dword fs:[0]
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x5bc
push ebx
push ebp
mov ebp, dword [esp + 0x5d4]
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov edi, edx
cmp dword [ebp + 0x14], ebx
je 0x4b119f
mov eax, 0x40000
jmp 0x4b1b02
cmp byte [ebp + 0x2c], bl
je 0x4b11ae
mov eax, 0x50000
jmp 0x4b1b02
mov dword [esp + 0x4c], ebx
cmp dword [ebp], ebx
je 0x4b11c4
cmp esi, 4
je 0x4b11c4
mov dword [esp + 0x4c], 0xc
lea edx, [esp + 0x3bc]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4b11d0
cmp word [esp + 0x3bc], bx
je 0x4b1afd
lea eax, [esp + 0x3bc]
cmp word [eax], 0x5c
jne 0x4b1202
mov ecx, 0x2f
mov word [eax], cx
add eax, 2
cmp word [eax], bx
jne 0x4b11f4
cmp esi, 4
sete al
mov byte [esp + 0x12], al
cmp al, bl
je 0x4b1241
lea eax, [esp + 0x3bc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b1222
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x3ba], 0x2f
mov byte [esp + 0x13], 1
jne 0x4b1245
mov byte [esp + 0x13], bl
mov dword [esp + 0x24], 8
cmp byte [esp + 0x12], bl
jne 0x4b1263
lea edx, [esp + 0x3bc]
call fcn.004b0460
test al, al
je 0x4b1267
mov dword [esp + 0x24], ebx
cmp esi, 2
jne 0x4b1277
mov eax, edi
mov ecx, ebp
call fcn.004b0b70
jmp 0x4b12b4
cmp esi, 1
jne 0x4b128d
mov edx, dword [esp + 0x5e4]
push edx
mov esi, ebp
call fcn.004b0c00
jmp 0x4b12b4
cmp esi, 3
jne 0x4b12a4
mov eax, dword [esp + 0x5e4]
mov ecx, edi
mov esi, ebp
call fcn.004b0d40
jmp 0x4b12b4
cmp esi, 4
jne 0x4b1afd
mov esi, ebp
call fcn.004b0e20
cmp eax, ebx
jne 0x4b1b02
mov al, byte [0x4f0aa8]
mov dword [esp + 0x3b8], ebx
mov byte [esp + 0x94], al
mov dword [esp + 0x18], ebx
mov byte [esp + 0x1c], bl
lea ecx, [esp + 0x3bc]
mov dword [esp + 0x5d4], ebx
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], vtable.CStringCharFromWChar.0
call fcn.0049fa40
add esp, 4
mov dword [esp + 0x5d4], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4b1313
mov eax, dword [eax]
cmp eax, ebx
jne 0x4b1318
mov eax, 0x4f0aa8
lea edx, [esp + 0x1a4]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4b1321
lea eax, [esp + 0x1a4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4b1335
sub eax, edx
mov dword [esp + 0x74], eax
cmp byte [esp + 0x13], bl
je 0x4b1366
lea edi, [esp + 0x1a4]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4b1350
mov dx, word [0x509ed4]
mov word [edi], dx
inc dword [esp + 0x74]
mov al, byte [0x4f0aa8]
xor ecx, ecx
mov byte [esp + 0x2a8], al
mov word [esp + 0x86], cx
mov ecx, dword [ebp + 0x68]
mov eax, 8
mov dword [esp + 0x1a0], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x3ac], 1
mov dword [esp + 0x3b4], ebx
mov dword [esp + 0x5c], 0x140b17
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ebx
mov word [esp + 0x60], ax
cmp dword [ebp], ebx
je 0x4b13ce
cmp byte [esp + 0x12], bl
jne 0x4b13ce
mov eax, 9
mov word [esp + 0x60], ax
mov word [esp + 0x88], ax
mov eax, dword [esp + 0x24]
mov word [esp + 0x62], ax
cmp eax, ebx
jne 0x4b13f4
mov eax, dword [ebp + 0x70]
cmp eax, ebx
jl 0x4b13f4
add eax, dword [esp + 0x4c]
mov dword [esp + 0x6c], eax
jmp 0x4b13f8
mov dword [esp + 0x6c], ebx
mov eax, dword [ebp + 0x70]
mov edx, dword [ebp + 0x4c]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esp + 0x90], eax
movzx eax, byte [ebp + 0x58]
mov word [esp + 0x84], cx
mov byte [esp + 0x2d], al
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x8c], edx
mov esi, eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x198], ecx
mov ecx, dword [ebp + 0x58]
lea edx, [esp + 0x50]
mov dword [esp + 0x19c], edx
mov edx, ecx
shrd edx, esi, 8
sar esi, 8
mov esi, eax
mov byte [esp + 0x2e], dl
mov edx, ecx
shrd edx, esi, 0x10
shrd ecx, eax, 0x18
sar eax, 0x18
movzx eax, byte [ebp + 0x50]
sar esi, 0x10
mov byte [esp + 0x31], al
mov eax, dword [ebp + 0x54]
mov byte [esp + 0x2f], dl
mov dl, cl
mov ecx, dword [ebp + 0x50]
mov ebx, ecx
mov esi, eax
shrd ebx, esi, 8
mov byte [esp + 0x32], bl
sar esi, 8
mov ebx, ecx
shrd ecx, eax, 0x18
mov esi, eax
shrd ebx, esi, 0x10
mov byte [esp + 0x34], cl
mov cl, byte [ebp + 0x60]
sar esi, 0x10
sar eax, 0x18
mov eax, dword [ebp + 0x64]
mov byte [esp + 0x35], cl
mov ecx, dword [ebp + 0x60]
mov byte [esp + 0x33], bl
mov ebx, ecx
mov esi, eax
shrd ebx, esi, 8
sar esi, 8
mov byte [esp + 0x36], bl
mov ebx, ecx
mov esi, eax
shrd ecx, eax, 0x18
shrd ebx, esi, 0x10
mov dword [esp + 0x28], 0xd5455
sar eax, 0x18
mov eax, dword [esp + 0x28]
mov byte [esp + 0x2c], 7
mov byte [esp + 0x38], cl
mov ecx, dword [esp + 0x2c]
sar esi, 0x10
mov dword [esp + 0x50], eax
mov esi, ebp
lea edi, [esp + 0x5c]
mov dword [esp + 0x78], 0x11
mov dword [esp + 0x7c], 9
mov byte [esp + 0x30], dl
mov byte [esp + 0x37], bl
mov dword [esp + 0x54], ecx
mov byte [esp + 0x58], dl
mov byte [esp + 0x52], 5
call fcn.004af8b0
test eax, eax
je 0x4b1544
call fcn.004b0f90
lea eax, [esp + 0x14]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.004517a0
mov eax, 0x400
jmp 0x4b1b02
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
lea ecx, [eax + edx + 0x1e]
add dword [ebp + 0x18], ecx
cmp dword [ebp + 0x14], 0
je 0x4b157e
mov esi, ebp
call fcn.004b0f90
mov ebp, dword [ebp + 0x14]
lea eax, [esp + 0x14]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.004517a0
mov eax, ebp
jmp 0x4b1b02
lea esi, [ebp + 0x30]
mov dword [ebp + 0x34], 0x23456789
mov dword [ebp + 0x38], 0x34567890
mov ebp, dword [ebp]
mov dword [esi], 0x12345678
test ebp, ebp
je 0x4b15b1
lea esp, [esp]
mov cl, byte [ebp]
test cl, cl
je 0x4b15b1
mov edx, esi
call fcn.004b0410
inc ebp
jne 0x4b15a0
cmp byte [0x516e15], 0
jne 0x4b15d3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
push edi
call fcn.004c8184
add esp, 4
xor edi, edi
call fcn.004c8196
sar eax, 7
mov byte [esp + edi + 0x3c], al
inc edi
cmp edi, 0xc
jl 0x4b15d5
mov edx, dword [esp + 0x64]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
shr edx, 8
mov byte [esp + 0x47], dl
mov dword [esp + 0x48], 0
jmp 0x4b1608
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
mov dl, byte [esp + edx + 0x3c]
movsx edi, dl
xor edi, ecx
shr ecx, 8
and edi, 0xff
mov dword [esp + 0x20], ecx
mov ecx, dword [edi*4 + 0x501a20]
xor ecx, dword [esp + 0x20]
mov ebp, eax
movzx edi, cl
add edi, ebx
imul edi, edi, 0x8088405
inc edi
mov dword [esi], ecx
mov ebx, edi
shr ebx, 0x18
xor ebx, eax
shr eax, 8
and ebx, 0xff
mov dword [esi + 4], edi
xor eax, dword [ebx*4 + 0x501a20]
and ebp, 0xfffd
or ebp, 2
mov ebx, ebp
xor ebx, 1
imul ebx, ebp
mov ebp, dword [esp + 0x48]
mov dword [esi + 8], eax
shr ebx, 8
xor bl, dl
movsx edx, byte [esp + ebp + 0x3d]
xor edx, ecx
shr ecx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x501a20]
xor edx, ecx
movzx ecx, dl
add ecx, edi
imul ecx, ecx, 0x8088405
inc ecx
mov edi, ecx
shr edi, 0x18
xor edi, eax
mov byte [esp + ebp + 0x3c], bl
mov ebx, eax
shr eax, 8
mov dword [esi + 4], ecx
mov dword [esi], edx
and edi, 0xff
xor eax, dword [edi*4 + 0x501a20]
and ebx, 0xfffd
mov edi, eax
or ebx, 2
mov eax, ebx
xor eax, 1
imul eax, ebx
shr eax, 8
xor al, byte [esp + ebp + 0x3d]
mov dword [esi + 8], edi
mov byte [esp + ebp + 0x3d], al
mov eax, edi
and eax, 0xfffd
or eax, 2
mov dword [esp + 0x20], eax
movsx eax, byte [esp + ebp + 0x3e]
xor eax, edx
and eax, 0xff
mov ebx, dword [eax*4 + 0x501a20]
shr edx, 8
xor ebx, edx
movzx eax, bl
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
shr ecx, 0x18
xor ecx, edi
mov dword [esi], ebx
mov dword [esi + 4], eax
and ecx, 0xff
shr edi, 8
xor edi, dword [ecx*4 + 0x501a20]
mov ecx, dword [esp + 0x20]
mov edx, ecx
xor edx, 1
imul edx, ecx
shr edx, 8
xor dl, byte [esp + ebp + 0x3e]
mov ecx, edi
and ecx, 0xfffd
or ecx, 2
mov byte [esp + ebp + 0x3e], dl
mov edx, ecx
xor edx, 1
imul edx, ecx
movsx ecx, byte [esp + ebp + 0x3f]
xor ecx, ebx
shr ebx, 8
mov dword [esi + 8], edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x501a20]
xor ecx, ebx
movzx ebx, cl
add ebx, eax
imul ebx, ebx, 0x8088405
inc ebx
mov eax, ebx
mov dword [esi + 4], eax
shr edx, 8
mov dword [esp + 0x20], eax
shr eax, 0x18
xor eax, edi
movsx edx, dl
xor dl, byte [esp + ebp + 0x3f]
and eax, 0xff
shr edi, 8
mov dword [esi], ecx
xor edi, dword [eax*4 + 0x501a20]
mov byte [esp + ebp + 0x3f], dl
add ebp, 4
mov eax, edi
mov dword [esi + 8], eax
mov dword [esp + 0x48], ebp
cmp ebp, 0xc
jl 0x4b1604
mov ebp, dword [esp + 0x5dc]
mov bl, byte [esp + 0x12]
xor esi, esi
cmp dword [ebp], esi
je 0x4b17e6
test bl, bl
jne 0x4b17e6
push 0xc
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
call fcn.004b0970
add dword [ebp + 0x18], 0xc
xor edi, edi
cmp dword [ebp], esi
je 0x4b17f6
test bl, bl
jne 0x4b17f6
lea eax, [edi + 1]
jmp 0x4b17f8
xor eax, eax
test bl, bl
mov ebx, dword [esp + 0x24]
mov byte [ebp + 0x2d], al
jne 0x4b1827
cmp ebx, 8
jne 0x4b1818
lea eax, [esp + 0x5c]
push eax
mov edi, ebp
call fcn.004b0ff0
mov edi, eax
jmp 0x4b182d
cmp ebx, esi
jne 0x4b182d
mov eax, ebp
call fcn.004b1100
mov edi, eax
jmp 0x4b182d
mov dword [ebp + 0x90], esi
cmp byte [ebp + 0x80], 0
mov byte [ebp + 0x2d], 0
je 0x4b1848
mov eax, dword [ebp + 0x7c]
cmp eax, esi
je 0x4b1848
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x90]
mov ecx, dword [ebp + 0x74]
add dword [ebp + 0x18], eax
mov dword [ebp + 0x7c], esi
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x70], ecx
test esi, esi
je 0x4b18aa
mov dword [esp + 0x5d4], 0xffffffff
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], vtable.CKuStringT_char__class_CKuStringUtilA_.0
test eax, eax
je 0x4b18a3
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x4b18a3
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
test eax, eax
je 0x4b189a
push eax
call fcn.004c57e5
add esp, 4
push edi
call fcn.004c57da
add esp, 4
mov eax, esi
jmp 0x4b1b02
test edi, edi
je 0x4b18fa
mov dword [esp + 0x5d4], 0xffffffff
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], vtable.CKuStringT_char__class_CKuStringUtilA_.0
test eax, eax
je 0x4b18f0
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x4b18f0
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x4b18e7
push eax
call fcn.004c57e5
add esp, 4
push esi
call fcn.004c57da
add esp, 4
mov eax, 0x400
jmp 0x4b1b02
mov edx, dword [esp + 0x4c]
mov esi, dword [ebp + 0x78]
add eax, edx
cmp dword [esp + 0x6c], eax
mov dword [esp + 0x68], esi
sete dl
cmp byte [ebp + 0x1c], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
je 0x4b19ac
cmp dword [ebp], 0
je 0x4b1931
cmp byte [esp + 0x12], 0
je 0x4b19ac
test byte [esp + 0x60], 1
mov word [esp + 0x62], bx
jne 0x4b1947
mov eax, 0xfff7
and word [esp + 0x60], ax
mov edx, dword [esp + 0x90]
mov cx, word [esp + 0x60]
sub edx, dword [ebp + 0x10]
mov eax, ebp
mov word [esp + 0x88], cx
call fcn.004b0ac0
test al, al
je 0x4b198e
mov esi, ebp
lea edi, [esp + 0x5c]
call fcn.004af8b0
test eax, eax
jne 0x4b1526
mov edx, dword [ebp + 0x18]
mov eax, ebp
call fcn.004b0ac0
test al, al
jne 0x4b1a49
lea eax, [esp + 0x14]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.004517a0
mov eax, 0x2000000
jmp 0x4b1b02
cmp word [esp + 0x62], bx
je 0x4b19ff
mov dword [esp + 0x5d4], 0xffffffff
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], vtable.CKuStringT_char__class_CKuStringUtilA_.0
test eax, eax
je 0x4b19f5
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x4b19f5
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x4b19ec
push eax
call fcn.004c57e5
add esp, 4
push esi
call fcn.004c57da
add esp, 4
mov eax, 0x4000000
jmp 0x4b1b02
test ebx, ebx
jne 0x4b1a25
test dl, dl
jne 0x4b1a25
lea eax, [esp + 0x14]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.004517a0
mov eax, 0x4000000
jmp 0x4b1b02
mov esi, ebp
lea edi, [esp + 0x5c]
call fcn.004afb80
test eax, eax
jne 0x4b1526
mov dx, word [esp + 0x88]
add dword [ebp + 0x18], 0x10
mov word [esp + 0x60], dx
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4b1a6b
lea eax, [esp + 0x14]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.004517a0
mov eax, esi
jmp 0x4b1b02
mov eax, dword [esp + 0x7c]
push eax
call fcn.004c5d48
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x1a0]
add esp, 4
push ecx
mov esi, eax
push edx
push esi
call fcn.004cd6c0
add esp, 0xc
push 0x360
mov dword [esp + 0x1a0], esi
call fcn.004c62f8
mov ecx, 0xd8
lea esi, [esp + 0x60]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x44]
add esp, 4
test ecx, ecx
jne 0x4b1ac0
mov dword [ebp + 0x44], eax
jmp 0x4b1ae5
cmp dword [ecx + 0x35c], 0
je 0x4b1adf
lea esp, [esp]
mov ecx, dword [ecx + 0x35c]
cmp dword [ecx + 0x35c], 0
jne 0x4b1ad0
mov dword [ecx + 0x35c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.004517a0
xor eax, eax
jmp 0x4b1b02
mov eax, 0x10000
mov ecx, dword [esp + 0x5cc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c8
ret 0xc