Function at 0x5a9ea6
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
xor esi, esi
add eax, 0xc
mov dword [esp + 0x14], esi
push edi
mov ecx, dword [eax]
cmp ecx, eax
je 0x5a9ed5
mov eax, dword [ecx + 0x30]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jmp 0x5a9ed9
mov dword [esp + 0x1c], esi
mov ecx, dword [0x81c517]
mov eax, dword fs:[0x30]
mov dword [esp + 0x2c], ecx
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov dword [esp + 0x28], ebx
mov edi, dword [ebx]
jmp 0x5a9f47
test ecx, ecx
je 0x5a9fba
mov ebp, dword [edi + 0x30]
mov eax, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], esi
cmp word [ebp], si
je 0x5a9f41
movzx eax, word [ebp]
mov ebx, esi
push eax
call fcn.005a9e68
movzx eax, ax
add esi, eax
inc ebx
pop ecx
movzx eax, word [ebp + ebx*2]
test ax, ax
jne 0x5a9f18
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], esi
xor esi, esi
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x5a9fba
mov edi, dword [edi]
cmp edi, ebx
jne 0x5a9ef7
mov edi, esi
mov ebp, dword [0x81c4eb]
test edi, edi
je 0x5a9fd6
mov eax, dword [edi + 0x3c]
mov ecx, esi
mov edx, dword [eax + edi + 0x78]
add edx, edi
mov dword [esp + 0x14], edx
mov eax, dword [edx + 0x20]
add eax, edi
cmp dword [edx + 0x18], 0
mov dword [esp + 0x2c], eax
jbe 0x5a9fd6
mov bh, byte [ebp]
mov eax, dword [eax + ecx*4]
add eax, edi
mov bl, byte [eax]
mov byte [esp + 0x12], bl
cmp bl, bh
jne 0x5a9fae
mov ebx, ebp
sub eax, ebp
cmp byte [esp + 0x12], 0
mov edx, dword [esp + 0x14]
je 0x5a9fbf
cmp byte [ebx], 0
je 0x5a9fbf
inc ebx
mov dl, byte [eax + ebx]
cmp dl, byte [ebx]
mov byte [esp + 0x12], dl
mov edx, dword [esp + 0x14]
je 0x5a9f8b
mov bh, byte [ebp]
inc ecx
cmp ecx, dword [edx + 0x18]
jae 0x5a9fd6
mov eax, dword [esp + 0x2c]
jmp 0x5a9f78
mov edi, dword [edi + 0x18]
jmp 0x5a9f4d
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ebp, dword [eax + edi]
add ebp, edi
jmp 0x5a9fd8
mov ebp, esi
mov ebx, dword [0x81c527]
cmp dword [ebx], esi
je 0x5aa014
push dword [esp + 0x18]
call fcn.005a9e53
pop ecx
cmp al, byte [ebx]
je 0x5a9ffe
cmp al, byte [ebx + 1]
je 0x5a9ffe
push 1
call ebp
jmp 0x5aa150
push dword [esp + 0x18]
call fcn.005a9e87
add ebx, 4
pop ecx
cmp eax, dword [ebx]
je 0x5aa014
cmp eax, dword [ebx + 4]
jne 0x5a9ff5
push dword [0x81c4f7]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebp, eax
mov edx, esi
cmp dword [0x81c4e3], esi
jbe 0x5aa04f
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [edx + ebp], ecx
mov eax, dword [0x81c507]
add edx, eax
cmp edx, dword [0x81c4e3]
jb 0x5aa034
test edi, edi
je 0x5aa150
mov eax, dword [edi + 0x3c]
mov ecx, esi
mov edx, dword [eax + edi + 0x78]
add edx, edi
mov dword [esp + 0x18], edx
mov eax, dword [edx + 0x20]
add eax, edi
cmp dword [edx + 0x18], 0
mov dword [esp + 0x2c], eax
jbe 0x5aa0cf
mov bh, byte [ebp]
mov eax, dword [eax + ecx*4]
add eax, edi
mov bl, byte [eax]
mov byte [esp + 0x12], bl
cmp bl, bh
jne 0x5aa0ae
mov ebx, ebp
sub eax, ebp
cmp byte [esp + 0x12], 0
mov edx, dword [esp + 0x18]
je 0x5aa0ba
cmp byte [ebx], 0
je 0x5aa0ba
inc ebx
mov dl, byte [eax + ebx]
cmp dl, byte [ebx]
mov byte [esp + 0x12], dl
mov edx, dword [esp + 0x18]
je 0x5aa08b
mov bh, byte [ebp]
inc ecx
cmp ecx, dword [edx + 0x18]
jae 0x5aa0cf
mov eax, dword [esp + 0x2c]
jmp 0x5aa078
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]