Function at 0x561178
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x65d780]
add edx, 0x2373
mov dword [0x65d784], edx
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x16], bh
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
mov dl, byte [ebp - 0x16]
and cl, dl
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x5613c8
jmp 0x561221
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x20]
mov byte [ebp - 0x21], cl
mov dword [ebp - 0x28], edx
jmp 0x561281
mov eax, 0x2532
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov si, word [edx]
mov dword [0x65d784], 0x7d9
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], eax
je 0x561387
jmp 0x5612d4
mov dword [0x65d780], 0xffffeff6
mov dword [0x65d784], 0x17e1
mov ecx, dword fs:[0x18]
mov dword [0x65d780], 0x1b4a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x65d780], 0x13eb
cmp eax, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x20], eax
jne 0x5611d1
mov eax, dword [0x65d784]
add eax, 0xfffffcbc
mov dword [ebp - 0x40], eax
jmp 0x5613bb
mov eax, dword [ebp - 0x28]
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 - 0x21]
and bh, bl
test bh, 1
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], esi
jne 0x5612b5
jmp 0x5611ea
mov eax, dword [0x65d784]
add eax, 0x26eb
mov dword [0x65d780], eax
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x5613c8
mov eax, dword [ebp - 0x30]
mov ecx, 0x1d6a
mov edx, dword [ebp - 0x48]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov word [ebp - 0x56], si
mov word [ebp - 0x58], bx
jb 0x561310
mov ax, word [ebp - 0x56]
mov word [ebp - 0x58], ax
mov ax, word [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x50]
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 - 0x54]
mov byte [ebp - 0x59], bl
mov dword [ebp - 0x60], esi
jne 0x56135b
mov eax, 0x13f4
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov edx, dword [ebp - 0x34]
cmp ecx, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x60], eax
jb 0x5612d4
mov eax, dword [ebp - 0x60]
mov ecx, 0x1ac1
mov dword [0x65d784], eax
mov dl, byte [ebp - 0x59]
test dl, 1
mov dword [ebp - 0x38], ecx
jne 0x561375
jmp 0x561387
mov dword [0x65d780], 0x1a2f
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
jmp 0x5613c8
mov eax, dword [ebp - 0x38]
mov dword [0x65d784], 0xc24
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x3c]
cmp edx, esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x28], edx
jne 0x561281
mov eax, 0x8e0
mov ecx, dword [ebp - 0x64]
mov dword [0x65d780], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
xor ecx, ecx
mov dword [0x65d780], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret