Function at 0x1015d46d
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, 0xffffffff
mov esi, dword [0x102db164]
add esi, 0x2373
mov dword [0x102db168], 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 0x1015d6c1
mov dword [0x102db164], 0xffffeff6
mov dword [0x102db168], 0x17e1
mov ecx, dword fs:[0x18]
mov dword [0x102db164], 0x1b4a
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov ecx, dword [ecx + 0x14]
mov dword [0x102db164], 0x13eb
cmp ecx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
je 0x1015d598
jmp 0x1015d5aa
mov eax, 0x8e0
mov ecx, dword [ebp - 0x28]
mov dword [0x102db164], ecx
mov dword [ebp - 0x2c], eax
jmp 0x1015d6b4
mov eax, dword [ebp - 0x30]
mov ecx, 0x1d6a
mov edx, dword [ebp - 0x34]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov word [ebp - 0x3e], si
mov word [ebp - 0x40], bx
jb 0x1015d563
mov ax, word [ebp - 0x3e]
mov word [ebp - 0x40], ax
mov ax, word [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x38]
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 - 0x3c]
mov byte [ebp - 0x41], bl
mov dword [ebp - 0x48], esi
jne 0x1015d660
jmp 0x1015d641
mov eax, dword [0x102db168]
add eax, 0xfffffcbc
mov dword [ebp - 0x2c], eax
jmp 0x1015d6b4
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x24]
mov byte [ebp - 0x49], cl
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
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 - 0x49]
and bh, bl
test bh, 1
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x5c], esi
jne 0x1015d5ef
jmp 0x1015d60e
mov eax, dword [0x102db168]
add eax, 0x26eb
mov dword [0x102db164], eax
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x1015d6c1
mov eax, 0x2532
xor ecx, ecx
mov edx, dword [ebp - 0x58]
mov si, word [edx]
mov dword [0x102db168], 0x7d9
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], eax
je 0x1015d68c
jmp 0x1015d527
mov eax, 0x13f4
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov edx, dword [ebp - 0x60]
cmp ecx, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x48], eax
jb 0x1015d527
mov eax, dword [ebp - 0x48]
mov ecx, 0x1ac1
mov dword [0x102db168], eax
mov dl, byte [ebp - 0x41]
test dl, 1
mov dword [ebp - 0x64], ecx
jne 0x1015d67a
jmp 0x1015d68c
mov dword [0x102db164], 0x1a2f
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
jmp 0x1015d6c1
mov eax, dword [ebp - 0x64]
mov dword [0x102db168], 0xc24
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x20]
cmp edx, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x50], edx
je 0x1015d511
jmp 0x1015d5be
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [0x102db164], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret