Function at 0x408260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x140
mov esi, esp
mov dword [esi + 0x128], ebp
lea edi, [esi + 0x130]
mov dword [edi - 4], esp
xor eax, eax
dec eax
mov dword [edi + 8], eax
mov dword [edi + 4], 0x40f310
mov ecx, dword fs:[0]
mov dword [edi], ecx
mov dword fs:[0], edi
lea ecx, [esi + 0x3a]
mov word [ecx], ax
lea edx, [esi + 0x38]
mov word [edx], ax
lea ebx, [esi + 0x24]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
pcmpeqd xmm0, xmm0
lea eax, [esi + 0xe8]
movdqu xmmword [eax + 0x30], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
push edx
push ecx
push eax
push dword [ebp + 0x14]
mov dword [esi + 0xc], ebx
push ebx
call fcn.0043a000
add esp, 0x14
xor eax, eax
lea ecx, [esi + 0x10]
mov dword [ecx + 8], eax
pxor xmm0, xmm0
movq qword [ecx], xmm0
mov dword [edi + 8], eax
push eax
push 0xa
call fcn.00411280
cmp byte [esi + 0x1b], 0
lea eax, [esi + 0x10]
jns 0x40830a
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x20]
mov dword [esi + 4], eax
mov dword [ecx], eax
lea edi, [esi + 0x48]
push 0xa0
push 0xff
push edi
call fcn.004150a0
add esp, 0xc
lea eax, [esi + 0x1c]
mov dword [esi + 0x30], edi
mov dword [eax], edi
lea eax, [esi + 0x3c]
mov dword [eax], 0
lea eax, [esi + 3]
mov byte [eax], 1
lea eax, [esi + 0xb]
mov byte [eax], 0x45
jmp 0x40834d
add eax, 2
mov dword [edi + 0xc], eax
lea ecx, [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call fcn.004373e0
test al, al
jne 0x408489
movzx ecx, byte [esi + 0x1b]
test cl, cl
jns 0x40836c
mov ecx, dword [esi + 0x14]
mov ebx, dword [esi + 4]
lea eax, [ebx + ecx]
cmp dword [esi + 0x20], eax
jne 0x4083be
mov dword [esi + 4], ecx
lea eax, [ecx + ecx]
lea ecx, [esi + 0x10]
push 0
push eax
call fcn.00411280
mov eax, dword [esi + 0x18]
mov ecx, 0x7fffffff
and eax, ecx
dec eax
cmp byte [esi + 0x1b], 0
mov ecx, 0xa
cmovns eax, ecx
lea ecx, [esi + 0x10]
push 0
push eax
call fcn.00411280
cmp byte [esi + 0x1b], 0
lea ebx, [esi + 0x10]
jns 0x4083b6
mov ebx, dword [esi + 0x10]
mov eax, dword [esi + 4]
add eax, ebx
mov dword [esi + 0x20], eax
movzx ecx, word [esi + 0x38]
movzx edx, word [esi + 0x3a]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
mov dword [esi + 4], ebx
je 0x40844c
movzx eax, word [eax]
movzx ecx, cx
movzx edx, dx
movzx eax, ax
lea edi, [esi + 0xe8]
push edi
lea edi, [esi + 0x3c]
push edi
lea edi, [esi + 0x1c]
push edi
lea edi, [esi + 0x48]
push edi
lea edi, [esi + 0x24]
push edi
push ecx
push edx
lea ecx, [esi + 0x20]
push ecx
push ebx
lea ecx, [esi + 0xb]
push ecx
lea ecx, [esi + 3]
push ecx
push eax
call fcn.0043a190
add esp, 0x30
test eax, eax
jne 0x408489
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
jne 0x408347
mov eax, dword [edi]
mov ebx, dword [eax + 0x24]
mov dword [esi + 0x138], 0xffffffff
mov ecx, ebx
call dword [0x451b30]
mov dword [esi + 0x138], 0
mov ecx, edi
call ebx
jmp 0x40834d
mov word [esi + 0x34], dx
mov word [esi + 0x36], cx
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov dword [esi + 0x138], 0xffffffff
mov ecx, ebx
call dword [0x451b30]
mov dword [esi + 0x138], 0
mov ecx, edi
call ebx
mov ebx, dword [esi + 4]
movzx ecx, word [esi + 0x36]
movzx edx, word [esi + 0x34]
jmp 0x4083d7
mov edi, dword [esi + 4]
movzx eax, byte [esi + 0x2f]
test al, al
jns 0x408497
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4084be
cmp byte [esi + 3], 0
je 0x4084be
mov eax, dword [esi + 0x1c]
mov ecx, eax
lea edx, [esi + 0x48]
sub ecx, edx
cmp ecx, 0x9f
jg 0x4084be
mov ecx, dword [esi + 0x3c]
lea edx, [eax + 4]
mov dword [esi + 0x1c], edx
mov dword [eax], ecx
push dword [ebp + 0x18]
push dword [esi + 0x20]
push edi
call fcn.0040f0e0
add esp, 0xc
fstp qword [esi + 0x40]
movq xmm0, qword [esi + 0x40]
mov eax, dword [ebp + 0x1c]
movq qword [eax], xmm0
mov edx, dword [esi + 0x1c]
movzx ecx, byte [esi + 0x2f]
mov eax, ecx
test cl, cl
jns 0x4084ec
mov eax, dword [esi + 0x28]
mov edi, edx
lea ebx, [esi + 0x48]
sub edi, ebx
cmp edi, 5
jl 0x4084fc
test eax, eax
jne 0x40855e
mov dword [esi + 0x138], 0
lea ecx, [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call fcn.004373e0
test al, al
je 0x40851c
mov eax, dword [ebp + 0x18]
or byte [eax], 2
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [edi], eax
cmp byte [esi + 0x1b], 0
jns 0x408535
push dword [esi + 0x10]
call fcn.00411540
add esp, 4
cmp byte [esi + 0x2f], 0
jns 0x408546
push dword [esi + 0x24]
call fcn.00411540
add esp, 4
mov eax, dword [esi + 0x130]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
lea eax, [edx - 4]
lea edi, [esi + 0x48]
cmp eax, edi
seta bl
cmp edi, edx
je 0x40858f
test bl, bl
je 0x40858f
lea ecx, [esi + 0x4c]
mov edx, eax
mov edi, dword [ecx - 4]
mov ebx, dword [edx]
mov dword [ecx - 4], ebx
mov dword [edx], edi
add edx, 0xfffffffc
lea edi, [ecx + 4]
cmp ecx, edx
mov ecx, edi
jb 0x408576
mov cl, byte [esi + 0x2f]
test cl, cl
jns 0x408599
mov edx, dword [esi + 0x24]
mov dword [esi + 0xc], edx
lea edx, [esi + 0x48]
cmp eax, edx
jbe 0x4085ea
test cl, cl
js 0x4085a9
movzx ecx, cl
jmp 0x4085ac
mov ecx, dword [esi + 0x28]
add ecx, dword [esi + 0xc]
jmp 0x4085d2
mov edx, ecx
mov edi, dword [esi + 0xc]
sub edx, edi
xor ebx, ebx
cmp edx, 2
setge bl
add edi, ebx
mov dword [esi + 0xc], edi
mov edx, dword [esi + 0x30]
add edx, 4
mov dword [esi + 0x30], edx
cmp edx, eax
jae 0x4085ea
mov edx, dword [esi + 0xc]
movzx edx, byte [edx]
mov ebx, edx
dec bl
cmp bl, 0x7d
ja 0x4085b1
mov edi, dword [esi + 0x30]
cmp dword [edi], edx
je 0x4085b1
jmp 0x408608
mov ecx, dword [esi + 0xc]
movzx ecx, byte [ecx]
mov edx, ecx
dec dl
cmp dl, 0x7d
ja 0x4084fc
mov eax, dword [eax]
dec eax
cmp eax, ecx
jb 0x4084fc
mov eax, dword [ebp + 0x18]
mov dword [eax], 4
mov dword [esi + 0x138], 0
jmp 0x4084fc