Function at 0x401820
Capabilities:
Access peb ldr_data
Get process heap flags
Hash data using djb2
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov dword [ebp - 0x34], ecx
mov ebx, 0x1505
mov dword [ebp - 0x18], 0
mov esi, str.ntdll.dll
mov dl, 0x6e
nop
mov al, dl
lea esi, [esi + 1]
sub al, 0x20
cmp dl, 0x61
movzx ecx, al
movzx eax, dl
mov dl, byte [esi]
cmovb ecx, eax
mov eax, ebx
movzx ecx, cl
shl eax, 5
add ebx, eax
add ebx, ecx
test dl, dl
jne 0x401840
mov dword [ebp - 4], ebx
mov esi, str.RtlCompactHeap
mov ebx, 0x1505
mov dl, 0x52
mov al, dl
lea esi, [esi + 1]
sub al, 0x20
cmp dl, 0x61
movzx ecx, al
movzx eax, dl
mov dl, byte [esi]
cmovb ecx, eax
mov eax, ebx
movzx ecx, cl
shl eax, 5
add ebx, eax
add ebx, ecx
test dl, dl
jne 0x401874
mov dword [ebp - 0xc], ebx
mov esi, str.RtlFreeHeap
mov ebx, 0x1505
mov dl, 0x52
mov al, dl
lea esi, [esi + 1]
sub al, 0x20
cmp dl, 0x61
movzx ecx, al
movzx eax, dl
mov dl, byte [esi]
cmovb ecx, eax
mov eax, ebx
movzx ecx, cl
shl eax, 5
add ebx, eax
add ebx, ecx
test dl, dl
jne 0x4018a8
mov dword [ebp - 0x28], ebx
mov esi, str.RtlSizeHeap
mov ebx, 0x1505
mov dl, 0x52
nop dword [eax]
mov al, dl
lea esi, [esi + 1]
sub al, 0x20
cmp dl, 0x61
movzx ecx, al
movzx eax, dl
mov dl, byte [esi]
cmovb ecx, eax
mov eax, ebx
movzx ecx, cl
shl eax, 5
add ebx, eax
add ebx, ecx
test dl, dl
jne 0x4018e0
mov dword [ebp - 0x2c], ebx
mov esi, str.RtlZeroHeap
mov ebx, 0x1505
mov dl, 0x52
mov al, dl
lea esi, [esi + 1]
sub al, 0x20
cmp dl, 0x61
movzx ecx, al
movzx eax, dl
mov dl, byte [esi]
cmovb ecx, eax
mov eax, ebx
movzx ecx, cl
shl eax, 5
add ebx, eax
add ebx, ecx
test dl, dl
jne 0x401914
mov eax, dword fs:[0x18]
xor ecx, ecx
push edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 8], ecx
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x401981
mov ebx, dword [ebp - 4]
nop word [eax + eax]
movzx edx, word [esi + 0x2c]
mov ecx, dword [esi + 0x30]
call fcn.00401d30
cmp eax, ebx
jne 0x401978
mov ecx, dword [esi + 0x18]
mov dword [ebp - 8], ecx
jmp 0x40197b
mov ecx, dword [ebp - 8]
mov esi, dword [esi]
cmp esi, edi
jne 0x401960
mov eax, dword [ecx + 0x3c]
xor edi, edi
mov dword [ebp - 0x14], 0
mov eax, dword [eax + ecx + 0x78]
add eax, ecx
je 0x401a1c
mov ebx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ebx, ecx
mov dword [ebp - 0x24], ebx
add edx, ecx
mov ebx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ebx, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x401a1c
mov eax, dword [ebp - 0xc]
nop
mov edx, dword [edx + edi*4]
mov esi, 0x1505
add edx, ecx
mov bl, byte [edx]
test bl, bl
je 0x4019fb
mov al, bl
lea edx, [edx + 1]
sub al, 0x20
cmp bl, 0x61
movzx ecx, al
movzx eax, bl
mov bl, byte [edx]
cmovb ecx, eax
mov eax, esi
movzx ecx, cl
shl eax, 5
add esi, eax
add esi, ecx
test bl, bl
jne 0x4019d0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp esi, eax
je 0x401a0a
mov edx, dword [ebp - 0x1c]
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x4019c0
jmp 0x401a1c
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
movzx eax, word [eax + edi*2]
mov edx, dword [edx + eax*4]
add edx, ecx
mov dword [ebp - 0x14], edx
mov eax, dword fs:[0x18]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x401a62
nop word [eax + eax]
movzx edx, word [esi + 0x2c]
mov ecx, dword [esi + 0x30]
call fcn.00401d30
cmp eax, dword [ebp - 4]
jne 0x401a59
mov ecx, dword [esi + 0x18]
mov dword [ebp - 8], ecx
jmp 0x401a5c
mov ecx, dword [ebp - 8]
mov esi, dword [esi]
cmp esi, edi
jne 0x401a40
mov eax, dword [ecx + 0x3c]
xor edi, edi
mov dword [ebp - 0x10], 0
mov eax, dword [eax + ecx + 0x78]
add eax, ecx
je 0x401afc
mov ebx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ebx, ecx
mov dword [ebp - 0xc], ebx
add edx, ecx
mov ebx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ebx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x401afc
nop dword [eax]
mov edx, dword [edx + edi*4]
mov esi, 0x1505
add edx, ecx
mov bl, byte [edx]
test bl, bl
je 0x401adb
mov al, bl
lea edx, [edx + 1]
sub al, 0x20
cmp bl, 0x61
movzx ecx, al
movzx eax, bl
mov bl, byte [edx]
cmovb ecx, eax
mov eax, esi
movzx ecx, cl
shl eax, 5
add esi, eax
add esi, ecx
test bl, bl
jne 0x401ab0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
cmp esi, dword [ebp - 0x28]
je 0x401aea
mov edx, dword [ebp - 0x20]
inc edi
cmp edi, eax
jb 0x401aa0
jmp 0x401afc
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
mov edx, dword [edx + eax*4]
add edx, ecx
mov dword [ebp - 0x10], edx
mov eax, dword fs:[0x18]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x401b42
nop word [eax + eax]
movzx edx, word [esi + 0x2c]
mov ecx, dword [esi + 0x30]
call fcn.00401d30
cmp eax, dword [ebp - 4]
jne 0x401b39
mov ecx, dword [esi + 0x18]
mov dword [ebp - 8], ecx
jmp 0x401b3c
mov ecx, dword [ebp - 8]
mov esi, dword [esi]
cmp esi, edi
jne 0x401b20
mov eax, dword [ecx + 0x3c]
xor edi, edi
mov dword [ebp - 0xc], 0
mov eax, dword [eax + ecx + 0x78]
add eax, ecx
je 0x401bdc
mov ebx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ebx, ecx
mov dword [ebp - 0x1c], ebx
add edx, ecx
mov ebx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ebx, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x401bdc
nop dword [eax]
mov edx, dword [edx + edi*4]
mov esi, 0x1505
add edx, ecx
mov bl, byte [edx]
test bl, bl
je 0x401bbb
mov al, bl
lea edx, [edx + 1]
sub al, 0x20
cmp bl, 0x61
movzx ecx, al
movzx eax, bl
mov bl, byte [edx]
cmovb ecx, eax
mov eax, esi
movzx ecx, cl
shl eax, 5
add esi, eax
add esi, ecx
test bl, bl
jne 0x401b90
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x28]
cmp esi, dword [ebp - 0x2c]
je 0x401bca
mov edx, dword [ebp - 0x24]
inc edi
cmp edi, eax
jb 0x401b80
jmp 0x401bdc
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
movzx eax, word [eax + edi*2]
mov edx, dword [edx + eax*4]
add edx, ecx
mov dword [ebp - 0xc], edx
mov eax, dword fs:[0x18]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x401c22
nop word [eax + eax]
movzx edx, word [esi + 0x2c]
mov ecx, dword [esi + 0x30]
call fcn.00401d30
cmp eax, dword [ebp - 4]
jne 0x401c19
mov ecx, dword [esi + 0x18]
mov dword [ebp - 8], ecx
jmp 0x401c1c
mov ecx, dword [ebp - 8]
mov esi, dword [esi]
cmp esi, edi
jne 0x401c00
mov eax, dword [ecx + 0x3c]
xor esi, esi
xor ebx, ebx
mov eax, dword [eax + ecx + 0x78]
add eax, ecx
je 0x401cbc
mov edi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add edi, ecx
mov dword [ebp - 0x20], edi
add edx, ecx
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add edi, ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x401cbc
nop word [eax + eax]
mov esi, dword [edx + ebx*4]
mov edi, 0x1505
mov dl, byte [esi + ecx]
add esi, ecx
test dl, dl
je 0x401c9c
mov al, dl
lea esi, [esi + 1]
sub al, 0x20
cmp dl, 0x61
movzx ecx, al
movzx eax, dl
mov dl, byte [esi]
cmovb ecx, eax
mov eax, edi
movzx ecx, cl
shl eax, 5
add edi, eax
add edi, ecx
test dl, dl
jne 0x401c71
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
cmp edi, dword [ebp - 0x30]
je 0x401cad
mov edx, dword [ebp - 0x28]
inc ebx
cmp ebx, eax
jb 0x401c60
xor esi, esi
jmp 0x401cbc
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
movzx eax, word [eax + ebx*2]
mov esi, dword [esi + eax*4]
add esi, ecx
mov eax, dword fs:[0x18]
mov ebx, dword [ebp - 0x34]
push ebx
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [ebp - 0xc]
pop edi
cmp eax, 0xffffffff
je 0x401cfb
push eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword fs:[0x18]
add esp, 0xc
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [ebp - 0x10]
movzx eax, al
mov dword [ebp - 0x18], eax
mov eax, dword fs:[0x18]
push 0
mov ecx, dword [eax + 0x30]
push dword [ecx + 0x18]
call dword [ebp - 0x14]
mov ecx, dword fs:[0x18]
push 0
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0x18]
call esi
mov eax, dword [ebp - 0x18]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret