Function at 0x54a140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov esi, dword [0x56df28]
mov edi, esi
add edi, 0xfffff82b
mov dword [0x56df24], edi
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], esi
mov dword [ebp - 0x1c], edx
jne 0x54a3c4
jmp 0x54a1cd
mov eax, dword [ebp - 0x20]
mov dword [0x56df24], eax
mov dword [0x56df28], 0x14b5
jmp 0x54a253
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [0x56df28], 0x14b5
add ecx, 0x2078
mov dword [0x56df24], ecx
mov dword [ebp - 0x1c], eax
jmp 0x54a3c4
mov eax, dword [ebp - 0x18]
add eax, 0xffffff19
mov dword [0x56df28], eax
mov dword [0x56df24], 0x1807
mov ecx, dword fs:[0x18]
mov dword [0x56df24], 0x17d3
mov dword [0x56df28], 0xca9
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x56df24], 0x1e4e
cmp eax, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
je 0x54a253
jmp 0x54a267
mov eax, dword [ebp - 0x34]
mov ecx, 0xfffff472
mov edx, dword [ebp - 0x38]
mov esi, dword [edx]
mov edi, dword [ebp - 0x2c]
cmp esi, edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], ecx
je 0x54a192
jmp 0x54a28a
xor eax, eax
mov dword [ebp - 0x44], eax
jmp 0x54a310
mov dword [0x56df24], 0x1726
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x54a3c4
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [0x56df28]
add edx, 0xffffdfbd
mov esi, dword [ebp - 0x30]
mov byte [ebp - 0x45], cl
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, ecx
add edx, 0x24
mov esi, dword [ecx + 0x28]
mov edi, dword [ecx + 0x10]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
sete bl
mov bh, byte [ebp - 0x45]
and bh, bl
test bh, 1
mov ebx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
jne 0x54a2ed
mov eax, dword [ebp - 0x54]
mov cx, word [eax]
shr cx, 1
movzx edx, cx
cmp cx, 0
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x34], esi
je 0x54a226
jmp 0x54a249
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x60]
add ecx, 0xfffffff8
mov dword [0x56df24], eax
mov dword [0x56df28], 0x14b5
mov dword [ebp - 0x1c], ecx
jmp 0x54a3c4
mov eax, dword [ebp - 0x44]
mov ecx, 0x5fe
mov edx, dword [ebp - 0x58]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ecx
mov word [ebp - 0x6e], si
mov word [ebp - 0x70], bx
jb 0x54a34c
mov ax, word [ebp - 0x6e]
mov word [ebp - 0x70], ax
mov ax, word [ebp - 0x70]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x68]
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 al, bl
mov esi, dword [ebp - 0x6c]
mov byte [ebp - 0x71], bl
mov byte [ebp - 0x72], al
mov dword [ebp - 0x78], esi
jne 0x54a3a2
mov eax, 0x1079
mov ecx, dword [ebp - 0x68]
add ecx, 1
mov edx, dword [ebp - 0x64]
cmp ecx, edx
mov bl, byte [ebp - 0x71]
mov byte [ebp - 0x72], bl
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x78], eax
jb 0x54a310
mov eax, dword [ebp - 0x78]
mov cl, byte [ebp - 0x72]
test cl, 1
mov edx, eax
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x34], eax
jne 0x54a1a9
jmp 0x54a226
mov eax, dword [ebp - 0x1c]
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret