Function at 0x5186c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x5186c8
xor eax, eax
push ebp
push 0x518b3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6f4]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6e4]
sub edx, dword [eax + 0x40]
sar edx, 1
jns 0x518702
adc edx, 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6e4]
add edx, dword [eax + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6d0]
mov eax, dword [eax + 0x48]
sar eax, 1
jns 0x518727
adc eax, 0
sub edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6d0]
call fcn.00461c30
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6d0]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x740]
call fcn.00461c30
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6d8]
mov edx, 0x518b4c
call fcn.0049af90
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6dc]
mov edx, 0x518b4c
call fcn.0049af90
lea eax, [ebp - 0x20]
mov edx, dword [0x548990]
mov edx, dword [edx]
mov edx, dword [edx + 4]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x44]
mov edx, dword [edx + 0xc4]
call fcn.004042d4
mov eax, dword [ebp - 0x20]
mov edx, 0x518b60
call fcn.00404658
jne 0x5187cc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x710]
mov edx, 0x518b80
call fcn.0049cc58
jmp 0x5187e2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x710]
mov edx, 0x518b8c
call fcn.0049cc58
lea eax, [ebp - 0x20]
mov edx, dword [0x548990]
mov edx, dword [edx]
mov edx, dword [edx + 8]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x44]
mov edx, dword [edx + 0xc4]
call fcn.004042d4
mov eax, dword [ebp - 0x20]
mov edx, 0x518b9c
call fcn.00404658
jne 0x518828
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x714]
mov edx, 0x518bbc
call fcn.0049cc58
jmp 0x51883e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x714]
mov edx, 0x518bc8
call fcn.0049cc58
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6cc]
call fcn.004a1408
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x70c]
call fcn.004a1408
mov eax, dword [0x548990]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [eax + 0x18], 0x3f000000
mov eax, dword [0x548990]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
movsx edx, word [eax + 0x22]
inc edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6cc]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6cc]
mov edx, dword [eax]
call dword [edx + 0xcc]
dec eax
mov edx, dword [0x548990]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov word [edx + 4], ax
mov eax, dword [0x548990]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x30]
movsx edx, word [eax + 0x22]
inc edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x70c]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x70c]
mov edx, dword [eax]
call dword [edx + 0xcc]
test eax, eax
jne 0x518912
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x70c]
mov edx, 0x1c
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x70c]
mov edx, dword [eax]
call dword [edx + 0xcc]
dec eax
mov edx, dword [0x548990]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov word [edx + 6], ax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, dword [0x548990]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
call fcn.0053bbe4
fld qword [ebp - 8]
fcomp dword [0x518bd0]
fnstsw ax
sahf
jb 0x518969
lea eax, [ebp - 0x14]
mov edx, 0x518bdc
call fcn.004042d4
fld qword [ebp - 8]
call fcn.00402bcc
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.004096ec
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
call fcn.00404558
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.00404b08
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6b0]
call fcn.0049af90
fld qword [ebp - 8]
call fcn.00402bcc
mov edx, dword [0x548990]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov dword [edx + 0x10], eax
fld qword [ebp - 0x10]
fcomp dword [0x518bd0]
fnstsw ax
sahf
jb 0x5189d9
lea eax, [ebp - 0x14]
mov edx, 0x518bdc
call fcn.004042d4
fld qword [ebp - 0x10]
call fcn.00402bcc
push edx
push eax
lea eax, [ebp - 0x38]
call fcn.004096ec
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x14]
call fcn.00404558
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.00404b08
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6c0]
call fcn.0049af90
fld qword [ebp - 0x10]
call fcn.00402bcc
mov edx, dword [0x548990]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov dword [edx + 0x14], eax
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x18]
mov eax, dword [0x548990]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x30]
call fcn.0053bc3c
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x18]
call fcn.0040951c
lea eax, [ebp - 0x40]
mov edx, 0x518be8
call fcn.00404514
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
call fcn.00404b08
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6b8]
call fcn.0049af90
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.0040951c
lea eax, [ebp - 0x48]
mov edx, 0x518be8
call fcn.00404514
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
call fcn.00404b08
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x6c8]
call fcn.0049af90
mov eax, dword [0x548990]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], edx
mov eax, dword [0x548990]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518b43
lea eax, [ebp - 0x48]
call fcn.0040423c
lea eax, [ebp - 0x44]
call fcn.00404958
lea eax, [ebp - 0x40]
call fcn.0040423c
lea eax, [ebp - 0x3c]
call fcn.00404958
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404260
lea eax, [ebp - 0x30]
call fcn.00404958
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404260
lea eax, [ebp - 0x24]
call fcn.00404958
lea eax, [ebp - 0x20]
call fcn.0040423c
lea eax, [ebp - 0x14]
call fcn.0040423c
ret