Function at 0x407694
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov edi, edx
add edi, 0xba41a41c
mov ebx, esi
adc ebx, 0xffffffff
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x6e], 0x80fc
mov dword [esp + 0x64], 0x4baf89c8
mov edi, dword [esp + 0x64]
mov ebx, edi
add ebx, 0xb4507650
mov dword [esp + 0x60], eax
mov ebx, dword fs:[ebx]
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, 0xffffffff
cmp ebx, 0
cmove ebx, eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0xc]
mov ebx, eax
add ebx, 0x14
mov eax, dword [eax + 0x14]
cmp eax, ebx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], eax
jne 0x40790a
mov eax, dword [esp + 0x40]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [esp + 0x3f]
test al, 1
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x40], ecx
jne 0x40772f
jmp 0x407788
mov eax, dword [esp + 0x34]
add eax, 0xfffffff8
mov dword [esp + 0x40], eax
jmp 0x40772f
xor eax, eax
mov cx, word [esp + 0x32]
shr cx, 1
movzx edx, cx
mov esi, dword [esp + 0x54]
or esi, 0x73ed8ca8
mov dword [esp + 0x68], esi
cmp cx, 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
jne 0x407815
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x74], edx
mov esi, dword [esp + 0x34]
mov edi, dword [esi]
mov ebx, dword [esp + 0x44]
cmp edi, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], edi
je 0x40772f
mov eax, dword [esp + 0x24]
mov ecx, 0x4c8db0c
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
mov eax, edx
mul ecx
mov ecx, dword [esp + 0x48]
imul esi, ecx, 0x4c8db0c
add edx, esi
mov esi, dword [esp + 0x34]
mov di, word [esi + 0x24]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x60]
cmp eax, edx
sete bl
mov bh, byte [esp + 0x23]
and bh, bl
mov ecx, dword [esi + 0x28]
test bh, 1
mov word [esp + 0x32], di
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], eax
jne 0x40774d
jmp 0x4078f9
mov eax, dword [esp + 0x28]
mov ecx, 0x1d734d6d
mov edx, dword [esp + 0x1c]
movzx esi, word [edx + eax*2]
mov di, si
mov ebx, esi
add ebx, 0xffffffbf
mov dx, bx
movzx ebx, dx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov eax, 0x726dad5c
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], ecx
mov cl, dl
mov dword [esp + 0xc], eax
mov byte [esp + 0xb], dl
mov edx, dword [esp + 0x14]
shld eax, edx, cl
mov cl, byte [esp + 0xb]
shl edx, cl
mov cl, byte [esp + 0xb]
test cl, 0x20
cmovne eax, edx
mov ecx, dword [esp + 0xc]
cmovne edx, ecx
add esi, 0x20
sub ebx, 0x1a
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edx
mov ax, word [esp + 0x6e]
cmovb di, si
mov edx, dword [esp + 0x4c]
shl edx, 0x12
mov si, 0x80fc
sub si, ax
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
mov ax, word [ecx + eax*2]
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], 0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
shl edx, cl
mov dword [esp + 0x68], edx
cmp ax, di
sete cl
cmp di, si
setne ch
mov al, cl
and al, ch
mov edx, dword [esp + 0x18]
add edx, 1
mov esi, dword [esp + 0x2c]
cmp edx, esi
setb ch
and al, ch
test al, 1
mov dword [esp + 4], ebx
mov byte [esp + 0x3f], cl
mov dword [esp + 0x28], edx
jne 0x407815
jmp 0x40773b
mov al, byte [esp + 3]
test al, 1
jne 0x407788
jmp 0x40775a
mov eax, dword [esp + 0x50]
cmp eax, 0
sete cl
mov edx, dword [esp + 0x60]
cmp edx, 0
setne ch
mov esi, dword [esp + 0x58]
mov byte [esp + 3], cl
mov byte [esp + 0x23], ch
mov dword [esp + 0x24], esi
jmp 0x4077b4