Function at 0x10164e1c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x1029b948]
add edx, 0xfffff404
mov dword [0x1029b944], edx
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], bl
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x10165068
jmp 0x10164e88
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 0x10164f0d
mov dword [0x1029b948], 0x1c78
mov dword [0x1029b944], 0x7e4
mov ecx, dword fs:[0x18]
mov dword [0x1029b944], 0x2201
mov dword [0x1029b948], 0x2254
mov eax, dword [ecx + 0x30]
mov dword [0x1029b944], 0xfffff9d6
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x1029b948], 0xe68
cmp eax, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], eax
je 0x10165059
jmp 0x10164e6f
mov eax, dword [ebp - 0x30]
mov ecx, 0x1f0d
mov dword [0x1029b948], eax
mov dl, byte [ebp - 0x31]
test dl, 1
mov dword [ebp - 0x38], ecx
jne 0x1016501a
jmp 0x1016502c
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 - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], esi
jne 0x10164f3e
jmp 0x10164f58
mov dword [0x1029b944], 0x1514
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x10165068
mov eax, 0x18d7
xor ecx, ecx
mov edx, dword [ebp - 0x40]
mov si, word [edx]
mov dword [0x1029b948], 0x10be
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x38], eax
je 0x1016502c
mov eax, dword [ebp - 0x4c]
mov ecx, 0x1cc4
mov edx, dword [ebp - 0x44]
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 0x10164fc6
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 - 0x31], bl
mov dword [ebp - 0x30], esi
jne 0x10164eec
mov eax, 0x1d54
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov edx, dword [ebp - 0x50]
cmp ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], ecx
jb 0x10164f8a
jmp 0x10164eec
mov dword [0x1029b944], 0x19d9
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
jmp 0x10165068
mov eax, dword [ebp - 0x38]
mov dword [0x1029b948], 0x1a05
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x28], edx
jne 0x10164f0d
mov eax, dword [ebp - 0x60]
mov dword [0x1029b944], eax
jmp 0x10165059
xor eax, eax
mov dword [0x1029b948], 0x2016
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret