Function at 0x1003a200
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x80
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x1013d244], 0x23d6
mov edx, dword [0x1013d248]
mov esi, edx
add esi, 0xfffffb21
mov dword [0x1013d248], 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 0x1003a4d3
jmp 0x1003a30d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov edx, eax
add edx, 0x24
mov esi, dword [eax + 0x28]
mov edi, ecx
add edi, 0x63f
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
cmp ebx, eax
sete al
mov ah, byte [ebp - 0x2d]
and ah, al
test ah, 1
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edi
jne 0x1003a3b5
jmp 0x1003a2da
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
mov dword [0x1013d248], ecx
mov dl, byte [ebp - 0x4d]
test dl, 1
mov esi, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], esi
jne 0x1003a49b
jmp 0x1003a36f
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov dx, word [ecx]
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x68], eax
je 0x1003a36f
jmp 0x1003a3cd
mov eax, dword [ebp - 0x18]
add eax, 0xfffff9c6
mov dword [0x1013d244], 0x170c
mov dword [0x1013d248], eax
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x1013d244], 0xcf7
mov ecx, dword [ecx + 0x30]
mov dword [0x1013d248], 0x4c0
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov ecx, dword [ecx + 0x14]
mov dword [0x1013d244], 0xcc9
cmp ecx, edx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x20], eax
je 0x1003a4d3
jmp 0x1003a393
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x2c]
mov esi, dword [edx]
mov edi, dword [ebp - 0x70]
cmp esi, edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
je 0x1003a4c5
jmp 0x1003a26c
mov eax, 0x4c0
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x6c]
mov byte [ebp - 0x2d], dl
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
jmp 0x1003a26c
mov eax, dword [ebp - 0x44]
mov dword [0x1013d244], eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff8
mov dword [ebp - 0x20], eax
jmp 0x1003a4d3
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x60]
mov edx, 0x3a0
mov esi, dword [ebp - 0x40]
mov di, word [esi + eax*2]
mov ebx, ecx
add ebx, 0xffffdb51
mov si, di
add si, 0xffbf
mov word [ebp - 0x76], si
mov si, di
add si, 0x20
mov word [ebp - 0x78], si
mov si, word [ebp - 0x76]
cmp si, 0x1a
mov si, word [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], edx
mov word [ebp - 0x86], si
mov word [ebp - 0x88], di
mov dword [ebp - 0x4c], ebx
jb 0x1003a439
mov ax, word [ebp - 0x88]
mov word [ebp - 0x86], ax
mov ax, word [ebp - 0x86]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x7c]
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 - 0x84]
mov byte [ebp - 0x4d], bl
mov dword [ebp - 0x48], esi
jne 0x1003a2b2
mov eax, dword [ebp - 0x80]
add eax, 0xffffd3c4
mov ecx, dword [ebp - 0x7c]
add ecx, 1
mov edx, dword [ebp - 0x64]
cmp ecx, edx
mov esi, eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], ecx
jb 0x1003a3cd
jmp 0x1003a2b2
mov eax, dword [ebp - 0x54]
mov dword [0x1013d244], eax
mov ecx, dword [ebp - 0x80]
add ecx, 0xffffec0d
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x8c]
mov dword [0x1013d248], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
jmp 0x1003a4d3
xor eax, eax
mov ecx, dword [ebp - 0x74]
mov dword [0x1013d244], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret