Function at 0x57006d60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x57025d1a]
mov dword [esp], eax
mov ecx, dword fs:[0x30]
mov ecx, dword [ecx + 0xc]
add ecx, 0xc
mov edx, ecx
xor esi, esi
mov edx, dword [edx]
cmp edx, ecx
je 0x57006dc0
mov edi, dword [edx + 0x30]
movzx ebp, word [edi]
test bp, bp
je 0x57006db4
add edi, 2
xor ebx, ebx
lea eax, [ebp - 0x41]
cmp ax, 0x1a
jae 0x57006da2
add ebp, 0x20
movzx eax, bp
add ebx, eax
movzx ebp, word [edi]
add edi, 2
test bp, bp
jne 0x57006d96
jmp 0x57006db6
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x57006d80
mov edi, dword [edx + 0x18]
jmp 0x57006dc2
xor edi, edi
mov ecx, dword [0x57025d16]
mov edx, edi
push dword [0x57025d32]
push dword [0x57025d4e]
call fcn.57006cc9
add esp, 8
mov dword [esp], eax
push dword [0x57025d62]
push esi
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov ebx, eax
mov ecx, dword [0x57025d16]
mov edx, edi
push dword [0x57025d32]
push dword [0x57025d22]
call fcn.57006cc9
add esp, 8
push 0x104
push ebx
push esi
call eax
mov ecx, dword [0x57025d52]
mov edx, dword [0x57025d12]
cmp word [ebx + eax*2 - 2], dx
jne 0x57006e2c
mov edx, eax
jmp 0x57006e44
mov word [ebx + eax*2], 0
mov esi, dword [0x57025d12]
lea edx, [eax - 1]
cmp word [ebx + eax*2 - 4], si
mov eax, edx
jne 0x57006e2c
mov al, byte [ecx]
test al, al
je 0x57006e5f
lea edx, [ebx + edx*2]
xor esi, esi
movsx eax, al
mov word [edx + esi*2], ax
mov al, byte [ecx + esi + 1]
inc esi
test al, al
jne 0x57006e4f
mov ecx, dword [0x57025d16]
mov edx, edi
push dword [0x57025d32]
push dword [0x57025d5e]
call fcn.57006cc9
add esp, 8
xor esi, esi
push esi
push dword [0x57025d1e]
push dword [0x57025d5a]
push esi
push 1
push dword [0x57025d4a]
push ebx
call eax
mov ebp, eax
mov ecx, dword [0x57025d16]
mov edx, edi
push dword [0x57025d32]
push dword [0x57025d2e]
call fcn.57006cc9
add esp, 8
push esi
push ebp
call eax
cmp eax, dword [0x57025d16]
jne 0x57006ec8
push esi
push esi
push esi
jmp 0x570070ad
mov edx, edi
mov edi, eax
mov ecx, dword [0x57025d16]
mov dword [esp + 4], edx
push dword [0x57025d32]
push dword [0x57025d42]
call fcn.57006cc9
add esp, 8
lea ecx, [esp + 0x18]
mov dword [ecx], esi
push esi
push ecx
push edi
push ebx
push ebp
call eax
test eax, eax
je 0x570070a8
mov eax, dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x10], eax
mov esi, dword [0x57025d0e]
lea ecx, [ebx + esi]
mov eax, dword [ebx + esi]
test eax, eax
je 0x57006f29
mov edx, dword [ebx + esi + 4]
lea esi, [esi + ebx + 8]
add dword [esi], edx
add esi, 4
dec eax
jne 0x57006f21
mov eax, dword [0x57025d56]
lea ebp, [ecx + eax]
mov edx, dword [0x57025d32]
mov dword [esp], edx
lea ecx, [ecx + eax + 1]
xor edi, edi
dec edi
mov edx, dword [0x57025d32]
cmp byte [ecx + edi + 1], 0
lea edi, [edi + 1]
jne 0x57006f47
xor ebx, ebx
test edi, edi
je 0x57006f67
xor eax, eax
imul ebx, edx
movzx esi, byte [ecx + eax]
add ebx, esi
inc eax
cmp edi, eax
jne 0x57006f59
mov ecx, dword [0x57025d16]
mov edx, dword [esp + 4]
push dword [esp]
push ebx
call fcn.57006cc9
add esp, 8
mov dword [esp + 8], eax
movsx eax, byte [ebp]
lea ecx, [ebp + eax]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x57025d32]
mov dword [esp], ecx
lea ecx, [ebp + eax + 1]
xor edi, edi
dec edi
mov edx, dword [0x57025d32]
cmp byte [ecx + edi + 1], 0
lea edi, [edi + 1]
jne 0x57006fa3
xor esi, esi
test edi, edi
mov eax, 0
je 0x57006fca
xor eax, eax
xor ebx, ebx
imul eax, edx
movzx ebp, byte [ecx + ebx]
add eax, ebp
inc ebx
cmp edi, ebx
jne 0x57006fbc
mov ecx, dword [0x57025d16]
mov edx, dword [esp + 4]
push dword [esp]
push eax
call fcn.57006cc9
add esp, 8
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
movsx eax, byte [ecx]
lea ebp, [ecx + eax]
lea ebx, [ecx + eax + 1]
push ebx
call dword [esp + 0xc]
mov edi, eax
movsx eax, byte [ebx - 1]
mov ecx, ebp
lea ebx, [ebp + eax]
add ebx, dword [0x57025d3a]
mov ebp, dword [eax + ebp + 8]
mov edx, ecx
lea ecx, [ebx + ebp]
mov dword [esp + 4], ecx
mov ecx, dword [edi + 0x3c]
add edi, dword [edi + ecx + 0x2c]
xor eax, eax
push eax
push eax
push eax
push dword [0x57025d3e]
call dword [esp + 0x10]