Function at 0x5a0530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov esi, dword [0x5ae454]
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
mov edi, esi
add edi, 0x23ac
mov dword [0x5ae458], edi
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edx
jne 0x5a07ab
jmp 0x5a0623
mov eax, 0x1179
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
shr dx, 1
movzx esi, dx
cmp dx, 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
je 0x5a0608
jmp 0x5a06d0
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 0x2d], cl
mov dword [ebp - 0x34], edx
jmp 0x5a0697
mov eax, dword [ebp - 0x38]
add eax, 0xffffe887
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov edx, dword [ebp - 0x24]
cmp ecx, edx
mov esi, eax
mov bl, byte [ebp - 0x3d]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bl
jb 0x5a06f9
jmp 0x5a0769
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov dword [0x5ae454], ecx
mov dword [ebp - 0x1c], eax
jmp 0x5a07ab
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x60]
cmp edx, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x64], eax
je 0x5a0794
jmp 0x5a0697
mov eax, dword [ebp - 0x18]
add eax, 0x155
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c8c
mov dword [0x5ae458], ecx
mov dword [0x5ae454], eax
mov ecx, dword fs:[0x18]
mov eax, dword [0x5ae454]
add eax, 0xfffffead
mov dword [0x5ae458], eax
mov dword [0x5ae454], 0xaa5
mov eax, dword [ecx + 0x30]
mov dword [0x5ae458], 0x877
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x5ae454], 0x41ef
cmp eax, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x2c], eax
je 0x5a079c
jmp 0x5a05a9
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 0x24
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x2d]
and bh, bl
test bh, 1
mov edi, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], edi
jne 0x5a06df
jmp 0x5a0585
mov eax, 0x1179
xor ecx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
jmp 0x5a06f9
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff8
mov dword [0x5ae454], 0x1179
mov dword [ebp - 0x1c], eax
jmp 0x5a07ab
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x68]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov word [ebp - 0x72], si
mov word [ebp - 0x74], bx
jb 0x5a0733
mov ax, word [ebp - 0x72]
mov word [ebp - 0x74], ax
mov ax, word [ebp - 0x74]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x3c]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov esi, dword [ebp - 0x38]
mov al, bl
mov byte [ebp - 0x3d], bl
mov dword [ebp - 0x4c], esi
mov byte [ebp - 0x4d], al
jne 0x5a0769
jmp 0x5a05c2
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0x4c]
mov dword [0x5ae458], 0x1bcb
test al, 1
mov edx, ecx
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x28], ecx
jne 0x5a05f4
jmp 0x5a0608
mov eax, dword [ebp - 0x64]
mov dword [0x5ae454], eax
xor eax, eax
mov dword [0x5ae454], 0x1bb2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret