Function at 0x561124
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov esi, dword [0x65d17c]
add esi, 0x2373
mov dword [0x65d180], esi
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x56136f
jmp 0x561187
mov eax, 0x8e0
mov ecx, dword [ebp - 0x1c]
mov dword [0x65d17c], ecx
mov dword [ebp - 0x20], eax
jmp 0x561362
mov dword [0x65d17c], 0xffffeff6
mov dword [0x65d180], 0x17e1
mov ecx, dword fs:[0x18]
mov dword [0x65d17c], 0x1b4a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x65d17c], 0x13eb
cmp eax, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jne 0x5611e9
mov eax, dword [0x65d180]
add eax, 0xfffffcbc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
jmp 0x561362
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x28]
mov byte [ebp - 0x2d], cl
mov dword [ebp - 0x34], edx
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 dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], esi
jne 0x56122e
jmp 0x561250
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff8
mov ecx, dword [0x65d180]
add ecx, 0x26eb
mov dword [0x65d17c], ecx
mov dword [ebp - 0x18], eax
jmp 0x56136f
mov eax, 0x2532
xor ecx, ecx
mov edx, dword [ebp - 0x3c]
mov si, word [edx]
mov dword [0x65d180], 0x7d9
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], eax
je 0x56133a
mov eax, dword [ebp - 0x48]
mov ecx, 0x1d6a
mov edx, dword [ebp - 0x40]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov word [ebp - 0x5a], si
mov word [ebp - 0x5c], bx
jb 0x5612be
mov ax, word [ebp - 0x5a]
mov word [ebp - 0x5c], ax
mov ax, word [ebp - 0x5c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x54]
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 - 0x58]
mov byte [ebp - 0x5d], bl
mov dword [ebp - 0x64], esi
jne 0x56130e
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x68], eax
mov eax, 0x13f4
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x4c]
cmp ecx, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x64], eax
jb 0x561282
mov eax, dword [ebp - 0x64]
mov ecx, 0x1ac1
mov dword [0x65d180], eax
mov dl, byte [ebp - 0x5d]
test dl, 1
mov dword [ebp - 0x50], ecx
jne 0x561328
jmp 0x56133a
mov dword [0x65d17c], 0x1a2f
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
jmp 0x56136f
mov eax, dword [ebp - 0x50]
mov dword [0x65d180], 0xc24
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x24]
cmp edx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], edx
je 0x561171
jmp 0x5611fd
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov dword [0x65d17c], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret