Function at 0x40adc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4d9e68
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x80], ebx
cmp esi, ebx
jne 0x40ae62
lea esi, [eax - 0x10]
mov eax, esi
call fcn.00408230
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x80], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ae4b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x2c], edi
mov byte [esp + 0x80], 1
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
mov dword [esp + 0x3c], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x40], eax
fild qword [esp + 0x3c]
and ecx, 0x80000000
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebx
fild qword [esp + 0x3c]
fchs
faddp st(1)
fmul qword [0x4fae38]
fldz
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x40af37
mov esi, dword [ebp + 0xc]
fstp st(0)
push esi
mov ecx, 0x4e8d7c
call fcn.00405a00
lea eax, [edi - 0x10]
mov byte [esp + 0x80], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aef5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
fld1
sub esp, 8
fcomp st(1)
fnstsw ax
fstp qword [esp]
test ah, 0x41
jne 0x40af4f
push str._.2f
jmp 0x40af5c
call fcn.0040ad80
fstp qword [esp]
push str._.0f
lea edi, [esp + 0x38]
call fcn.0040e4a0
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
mov ecx, str._1_MB
call fcn.00405a00
lea edx, [esp + 0x34]
push edx
mov ecx, str.grid.item.filesizemb
mov byte [esp + 0x84], 2
call fcn.00405a00
lea eax, [esp + 0x38]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x38]
push ecx
mov bl, 3
lea edx, [esp + 0x44]
mov byte [esp + 0x88], bl
mov ecx, dword [eax + 0x64]
push edx
call fcn.0046f110
mov byte [esp + 0x80], 4
mov edi, dword [esp + 0x2c]
mov eax, dword [eax]
push edi
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00407a10
mov byte [esp + 0x8c], bl
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aff5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b01d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b045
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x30]
add esi, 0xfffffff0
mov eax, esi
call fcn.00408230
mov ebx, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [edi - 0x10]
mov byte [esp + 0x80], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b07f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0a3
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8