Function at 0x54a130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x56e3f8]
mov esi, edx
add esi, 0xfffff82b
mov dword [0x56e3f4], esi
cmp ecx, 0
sete bl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x19], bl
mov eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
sete dl
mov dh, byte [ebp - 0x19]
and dh, dl
test dh, 1
mov dword [ebp - 0x20], eax
jne 0x54a3c0
jmp 0x54a271
mov eax, dword [ebp - 0x24]
mov cx, word [eax]
shr cx, 1
movzx edx, cx
cmp cx, 0
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], esi
jne 0x54a267
mov eax, dword [ebp - 0x30]
mov ecx, 0xfffff472
mov edx, dword [ebp - 0x34]
mov esi, dword [edx]
mov edi, dword [ebp - 0x38]
cmp esi, edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], esi
jne 0x54a20b
mov eax, dword [ebp - 0x3c]
mov dword [0x56e3f4], eax
mov dword [0x56e3f8], 0x14b5
jmp 0x54a253
mov eax, 0x1079
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
mov bl, byte [ebp - 0x49]
mov byte [ebp - 0x4a], bl
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], eax
jb 0x54a313
jmp 0x54a385
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov edx, eax
add edx, 0x24
mov esi, dword [eax + 0x28]
mov edi, dword [eax + 0x10]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
sete bl
mov bh, byte [ebp - 0x55]
and bh, bl
test bh, 1
mov ebx, eax
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], ebx
jne 0x54a2f0
jmp 0x54a18f
xor eax, eax
mov dword [0x56e3f4], 0x1726
mov dword [ebp - 0x20], eax
jmp 0x54a3c0
xor eax, eax
mov dword [ebp - 0x50], eax
jmp 0x54a313
mov eax, dword [ebp - 0x18]
add eax, 0xffffff19
mov dword [0x56e3f8], eax
mov dword [0x56e3f4], 0x1807
mov ecx, dword fs:[0x18]
mov dword [0x56e3f4], 0x17d3
mov dword [0x56e3f8], 0xca9
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x56e3f4], 0x1e4e
cmp eax, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x6c], eax
je 0x54a253
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [0x56e3f8]
add edx, 0xffffdfbd
mov esi, dword [ebp - 0x6c]
mov byte [ebp - 0x55], cl
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], esi
jmp 0x54a20b
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x68]
mov dword [0x56e3f4], eax
mov dword [0x56e3f8], 0x14b5
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ecx
jmp 0x54a3c0
mov eax, dword [ebp - 0x50]
mov ecx, 0x5fe
mov edx, dword [ebp - 0x60]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x70], ecx
mov word [ebp - 0x72], si
mov word [ebp - 0x74], bx
jb 0x54a34f
mov ax, word [ebp - 0x72]
mov word [ebp - 0x74], ax
mov ax, word [ebp - 0x74]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x48]
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 - 0x70]
mov byte [ebp - 0x49], bl
mov byte [ebp - 0x4a], al
mov dword [ebp - 0x54], esi
jne 0x54a385
jmp 0x54a1e1
mov eax, dword [ebp - 0x54]
mov cl, byte [ebp - 0x4a]
test cl, 1
mov edx, eax
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x7c], eax
jne 0x54a3a3
jmp 0x54a1b0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
add eax, 0x2078
mov dword [0x56e3f8], 0x14b5
mov dword [0x56e3f4], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret