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

Disassembly:
push 0xffffffffffffffff
push 0x4dc306
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 0x4b5eaf
mov eax, 0x40000
jmp 0x4b6812
cmp byte [ebp + 0x2c], bl
je 0x4b5ebe
mov eax, 0x50000
jmp 0x4b6812
mov dword [esp + 0x4c], ebx
cmp dword [ebp], ebx
je 0x4b5ed4
cmp esi, 4
je 0x4b5ed4
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 0x4b5ee0
cmp word [esp + 0x3bc], bx
je 0x4b680d
lea eax, [esp + 0x3bc]
cmp word [eax], 0x5c
jne 0x4b5f12
mov ecx, 0x2f
mov word [eax], cx
add eax, 2
cmp word [eax], bx
jne 0x4b5f04
cmp esi, 4
sete al
mov byte [esp + 0x12], al
cmp al, bl
je 0x4b5f51
lea eax, [esp + 0x3bc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b5f32
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x3ba], 0x2f
mov byte [esp + 0x13], 1
jne 0x4b5f55
mov byte [esp + 0x13], bl
mov dword [esp + 0x24], 8
cmp byte [esp + 0x12], bl
jne 0x4b5f73
lea edx, [esp + 0x3bc]
call fcn.004b5170
test al, al
je 0x4b5f77
mov dword [esp + 0x24], ebx
cmp esi, 2
jne 0x4b5f87
mov eax, edi
mov ecx, ebp
call fcn.004b5880
jmp 0x4b5fc4
cmp esi, 1
jne 0x4b5f9d
mov edx, dword [esp + 0x5e4]
push edx
mov esi, ebp
call fcn.004b5910
jmp 0x4b5fc4
cmp esi, 3
jne 0x4b5fb4
mov eax, dword [esp + 0x5e4]
mov ecx, edi
mov esi, ebp
call fcn.004b5a50
jmp 0x4b5fc4
cmp esi, 4
jne 0x4b680d
mov esi, ebp
call fcn.004b5b30
cmp eax, ebx
jne 0x4b6812
mov al, byte [0x50ed83]
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.004a4950
add esp, 4
mov dword [esp + 0x5d4], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4b6023
mov eax, dword [eax]
cmp eax, ebx
jne 0x4b6028
mov eax, 0x50ed83
lea edx, [esp + 0x1a4]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4b6031
lea eax, [esp + 0x1a4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4b6045
sub eax, edx
mov dword [esp + 0x74], eax
cmp byte [esp + 0x13], bl
je 0x4b6076
lea edi, [esp + 0x1a4]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4b6060
mov dx, word [0x50f6ac]
mov word [edi], dx
inc dword [esp + 0x74]
mov al, byte [0x50ed83]
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 0x4b60de
cmp byte [esp + 0x12], bl
jne 0x4b60de
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 0x4b6104
mov eax, dword [ebp + 0x70]
cmp eax, ebx
jl 0x4b6104
add eax, dword [esp + 0x4c]
mov dword [esp + 0x6c], eax
jmp 0x4b6108
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.004b45c0
test eax, eax
je 0x4b6254
call fcn.004b5ca0
lea eax, [esp + 0x14]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.0044fba0
mov eax, 0x400
jmp 0x4b6812
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 0x4b628e
mov esi, ebp
call fcn.004b5ca0
mov ebp, dword [ebp + 0x14]
lea eax, [esp + 0x14]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.0044fba0
mov eax, ebp
jmp 0x4b6812
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 0x4b62c1
lea esp, [esp]
mov cl, byte [ebp]
test cl, cl
je 0x4b62c1
mov edx, esi
call fcn.004b5120
inc ebp
jne 0x4b62b0
cmp byte [0x51c009], 0
jne 0x4b62e3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
push edi
call fcn.004cce84
add esp, 4
xor edi, edi
call fcn.004cce96
sar eax, 7
mov byte [esp + edi + 0x3c], al
inc edi
cmp edi, 0xc
jl 0x4b62e5
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 0x4b6318
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 + 0x5064f0]
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 + 0x5064f0]
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 + 0x5064f0]
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 + 0x5064f0]
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 + 0x5064f0]
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 + 0x5064f0]
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 + 0x5064f0]
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 + 0x5064f0]
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 0x4b6314
mov ebp, dword [esp + 0x5dc]
mov bl, byte [esp + 0x12]
xor esi, esi
cmp dword [ebp], esi
je 0x4b64f6
test bl, bl
jne 0x4b64f6
push 0xc
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
call fcn.004b5680
add dword [ebp + 0x18], 0xc
xor edi, edi
cmp dword [ebp], esi
je 0x4b6506
test bl, bl
jne 0x4b6506
lea eax, [edi + 1]
jmp 0x4b6508
xor eax, eax
test bl, bl
mov ebx, dword [esp + 0x24]
mov byte [ebp + 0x2d], al
jne 0x4b6537
cmp ebx, 8
jne 0x4b6528
lea eax, [esp + 0x5c]
push eax
mov edi, ebp
call fcn.004b5d00
mov edi, eax
jmp 0x4b653d
cmp ebx, esi
jne 0x4b653d
mov eax, ebp
call fcn.004b5e10
mov edi, eax
jmp 0x4b653d
mov dword [ebp + 0x90], esi
cmp byte [ebp + 0x80], 0
mov byte [ebp + 0x2d], 0
je 0x4b6558
mov eax, dword [ebp + 0x7c]
cmp eax, esi
je 0x4b6558
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 0x4b65ba
mov dword [esp + 0x5d4], 0xffffffff
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], vtable.CKuStringT_char__class_CKuStringUtilA_.0
test eax, eax
je 0x4b65b3
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x4b65b3
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
test eax, eax
je 0x4b65aa
push eax
call fcn.004ca991
add esp, 4
push edi
call fcn.004cb3e6
add esp, 4
mov eax, esi
jmp 0x4b6812
test edi, edi
je 0x4b660a
mov dword [esp + 0x5d4], 0xffffffff
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], vtable.CKuStringT_char__class_CKuStringUtilA_.0
test eax, eax
je 0x4b6600
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x4b6600
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x4b65f7
push eax
call fcn.004ca991
add esp, 4
push esi
call fcn.004cb3e6
add esp, 4
mov eax, 0x400
jmp 0x4b6812
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 0x4b66bc
cmp dword [ebp], 0
je 0x4b6641
cmp byte [esp + 0x12], 0
je 0x4b66bc
test byte [esp + 0x60], 1
mov word [esp + 0x62], bx
jne 0x4b6657
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.004b57d0
test al, al
je 0x4b669e
mov esi, ebp
lea edi, [esp + 0x5c]
call fcn.004b45c0
test eax, eax
jne 0x4b6236
mov edx, dword [ebp + 0x18]
mov eax, ebp
call fcn.004b57d0
test al, al
jne 0x4b6759
lea eax, [esp + 0x14]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.0044fba0
mov eax, 0x2000000
jmp 0x4b6812
cmp word [esp + 0x62], bx
je 0x4b670f
mov dword [esp + 0x5d4], 0xffffffff
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], vtable.CKuStringT_char__class_CKuStringUtilA_.0
test eax, eax
je 0x4b6705
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x4b6705
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x4b66fc
push eax
call fcn.004ca991
add esp, 4
push esi
call fcn.004cb3e6
add esp, 4
mov eax, 0x4000000
jmp 0x4b6812
test ebx, ebx
jne 0x4b6735
test dl, dl
jne 0x4b6735
lea eax, [esp + 0x14]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.0044fba0
mov eax, 0x4000000
jmp 0x4b6812
mov esi, ebp
lea edi, [esp + 0x5c]
call fcn.004b4890
test eax, eax
jne 0x4b6236
mov dx, word [esp + 0x88]
add dword [ebp + 0x18], 0x10
mov word [esp + 0x60], dx
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4b677b
lea eax, [esp + 0x14]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.0044fba0
mov eax, esi
jmp 0x4b6812
mov eax, dword [esp + 0x7c]
push eax
call fcn.004caa52
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x1a0]
add esp, 4
push ecx
mov esi, eax
push edx
push esi
call fcn.004d23c0
add esp, 0xc
push 0x360
mov dword [esp + 0x1a0], esi
call fcn.004cb48c
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 0x4b67d0
mov dword [ebp + 0x44], eax
jmp 0x4b67f5
cmp dword [ecx + 0x35c], 0
je 0x4b67ef
lea esp, [esp]
mov ecx, dword [ecx + 0x35c]
cmp dword [ecx + 0x35c], 0
jne 0x4b67e0
mov dword [ecx + 0x35c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x5d4], 0xffffffff
call fcn.0044fba0
xor eax, eax
jmp 0x4b6812
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