Function at 0x5ed3a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1d4], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], eax
lea esi, [ebp - 8]
xor eax, eax
push ebp
push 0x5edd04
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 8]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0xc]
sub eax, dword [ecx + 0x1f0]
sbb edx, dword [ecx + 0x1f4]
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], edx
fild qword [ebp - 0x1d0]
mov eax, dword [0x8e6d78]
fild qword [eax]
fdivp st(1)
fstp qword [ebp - 0x50]
wait
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x54], eax
fild dword [ebp - 0x58]
fild dword [ebp - 0x54]
fdivp st(1)
fstp qword [ebp - 0x60]
wait
fld qword [ebp - 0x50]
fdiv qword [ebp - 0x60]
fstp qword [ebp - 0x38]
wait
mov edi, 1
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x22c], 0
je 0x5ed594
mov eax, dword [esi]
fild qword [eax + 0x20]
fsubr qword [ebp - 0x38]
fstp qword [ebp - 0x40]
wait
fld xword [0x5edd14]
fcomp qword [ebp - 0x40]
wait
fnstsw ax
sahf
jbe 0x5ed478
xor edi, edi
jmp 0x5ed4e9
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x22c], 2
je 0x5ed49c
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x22c], 0
jge 0x5ed4d0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
test byte [eax + 0x29], 4
je 0x5ed4d0
fld xword [0x5edd20]
fcomp qword [ebp - 0x40]
wait
fnstsw ax
sahf
jb 0x5ed4af
xor edi, edi
jmp 0x5ed4e9
fld xword [0x5edd2c]
fcomp qword [ebp - 0x40]
wait
fnstsw ax
sahf
jae 0x5ed4e9
fld qword [ebp - 0x38]
call fcn.00404888
mov ecx, dword [esi]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
jmp 0x5ed4e9
fld xword [0x5edd38]
fcomp qword [ebp - 0x40]
wait
fnstsw ax
sahf
jae 0x5ed4e9
fld qword [ebp - 0x40]
call fcn.00404888
mov edi, eax
test edi, edi
jne 0x5ed529
mov eax, dword [ebp - 0xc]
inc dword [eax + 0x294]
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x298], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x268], 2
jle 0x5ed5a4
push 0x5edd50
call fcn.005b042c
mov ecx, 6
mov edx, dword [ebp - 0xc]
call fcn.005b1078
jmp 0x5ed5a4
cmp edi, 1
jle 0x5ed5a4
mov eax, edi
dec eax
mov edx, dword [ebp - 0xc]
add dword [edx + 0x290], eax
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x298], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x268], 2
jle 0x5ed5a4
lea eax, [ebp - 0x1d4]
push eax
mov eax, edi
dec eax
mov dword [ebp - 0x1d0], eax
mov byte [ebp - 0x1cc], 0
lea edx, [ebp - 0x1d0]
xor ecx, ecx
mov eax, 0x5edd70
call fcn.00418808
mov eax, dword [ebp - 0x1d4]
push eax
call fcn.005b042c
mov ecx, 6
mov edx, dword [ebp - 0xc]
call fcn.005b1078
jmp 0x5ed5a4
fld qword [ebp - 0x38]
call fcn.00404888
mov ecx, dword [esi]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x7c]
mov edx, dword [esi]
sub eax, dword [edx + 0x14]
cmp edi, eax
jle 0x5ed5b5
mov edi, eax
test edi, edi
jle 0x5edceb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xd8], 0
je 0x5ed5de
mov byte [ebp - 0x21], 0
jmp 0x5ed71f
mov eax, dword [esi]
mov eax, dword [eax + 0x158]
mov edx, dword [ebp - 0x30]
cmp eax, dword [edx + 0x28]
jne 0x5ed612
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
mov edx, dword [ebp - 0x30]
cmp eax, dword [edx + 0x2c]
jne 0x5ed612
mov eax, dword [esi]
mov eax, dword [eax + 0x15c]
mov edx, dword [ebp - 0x30]
cmp eax, dword [edx + 0x34]
jne 0x5ed612
xor eax, eax
jmp 0x5ed614
mov al, 1
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0
je 0x5ed71f
push 0x5edd94
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x214], eax
mov byte [ebp - 0x210], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x20c], eax
mov byte [ebp - 0x208], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x158]
mov dword [ebp - 0x204], eax
mov byte [ebp - 0x200], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
mov dword [ebp - 0x1fc], eax
mov byte [ebp - 0x1f8], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x15c]
push eax
mov eax, dword [0x8e6228]
mov eax, dword [eax]
call eax
pop ecx
mov dword [ebp - 0x1f4], eax
mov byte [ebp - 0x1f0], 6
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x1ec], eax
mov byte [ebp - 0x1e8], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x1e4], eax
mov byte [ebp - 0x1e0], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [0x8e6228]
mov eax, dword [eax]
call eax
pop ecx
mov dword [ebp - 0x1dc], eax
mov byte [ebp - 0x1d8], 6
lea eax, [ebp - 0x214]
push eax
push 7
call fcn.005b042c
mov ecx, 5
xor edx, edx
call fcn.005b10d8
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x28]
mov edx, dword [esi]
mov dword [edx + 0x158], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x2c]
mov edx, dword [esi]
mov dword [edx + 0x154], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x34]
mov edx, dword [esi]
mov dword [edx + 0x15c], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x28]
cmp eax, dword [ebx + 0x28]
jne 0x5ed744
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x2c]
cmp eax, dword [ebx + 0x2c]
jne 0x5ed744
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebx + 0x34]
jne 0x5ed744
xor eax, eax
jmp 0x5ed746
mov al, 1
and eax, 0x7f
mov edx, dword [esi]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xd8], 0
jne 0x5ed887
mov eax, dword [esi]
cmp dword [eax + 0x30], 0
je 0x5ed887
mov eax, dword [esi]
add eax, 0x38
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
cmp dword [eax + 0x150], 0
setne al
xor al, 1
or al, byte [ebp - 0x21]
je 0x5ed851
mov eax, dword [esi]
cmp dword [eax + 0x38], 0
jne 0x5ed7d9
mov eax, dword [esi]
add eax, 0x38
push eax
mov eax, dword [0x8e6a3c]
mov eax, dword [eax]
call eax
pop ecx
mov eax, dword [ebx + 0x2c]
push eax
mov eax, dword [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [esi]
add eax, 0x38
push eax
mov eax, dword [0x8e6e64]
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
je 0x5ed7d9
mov ecx, 0x5ede3c
mov dl, 1
mov eax, dword [0x5e6bb4]
call fcn.0041ca5c
call fcn.004063f4
mov eax, dword [esi]
mov eax, dword [eax + 0x150]
push eax
mov eax, dword [0x8e64c4]
mov eax, dword [eax]
call eax
pop ecx
push 0
push 0
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
push eax
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebx + 0x2c]
push eax
mov eax, dword [ebx + 0x28]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x28]
push eax
mov eax, dword [0x8e6a38]
mov eax, dword [eax]
call eax
add esp, 0x28
mov edx, dword [esi]
mov dword [edx + 0x150], eax
mov eax, dword [esi]
cmp dword [eax + 0x150], 0
jne 0x5ed851
mov ecx, 0x5edea0
mov dl, 1
mov eax, dword [0x5e6bb4]
call fcn.0041ca5c
call fcn.004063f4
mov eax, dword [ebp - 0x28]
add eax, 0x10
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x154]
push eax
push 0
mov eax, dword [ebp - 0x2c]
add eax, 0x10
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x150]
push eax
mov eax, dword [0x8e6a90]
mov eax, dword [eax]
call eax
add esp, 0x1c
dec edi
test edi, edi
jl 0x5edceb
inc edi
mov edx, dword [ebp - 0xc]
cmp byte [edx + 0x37c], 0
jne 0x5edceb
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [0x8e6c54]
mov eax, dword [eax]
call eax
pop ecx
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [ebp - 0x98], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
test byte [eax + 0x28], 0x20
je 0x5ed9ef
mov eax, dword [ebx + 0x184]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x184]
mov dword [ebx + 0x184], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], 0x20
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov eax, dword [esi]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov eax, dword [0x8e66f8]
mov eax, dword [eax]
call eax
add esp, 0x18
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
or dword [ebp - 0x94], 1
mov eax, dword [0x8e6438]
push dword [eax + 4]
push dword [eax]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
mov eax, dword [0x8e66f8]
mov eax, dword [eax]
call eax
add esp, 0x18
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
cmp word [eax + 0x3c2], 0
jne 0x5ed981
mov eax, dword [ebp - 0xc]
cmp word [eax + 0x3d2], 0
je 0x5ed98f
push ebp
mov edx, ebx
mov eax, dword [ebp - 0x28]
call fcn.005ed1cc
pop ecx
jmp 0x5ed993
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0xc]
movzx edx, byte [0x5ededc]
cmp dl, byte [eax + 0x378]
je 0x5ed9c1
mov eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
movzx eax, byte [ebp - 1]
push eax
mov ecx, ebx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.005ecf30
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
push eax
lea ecx, [ebp - 0xb0]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.005eb08c
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x184], eax
jmp 0x5edcd5
mov eax, dword [ebp - 0x28]
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x1c8]
mov ecx, 0x46
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xa4]
mov dword [ebp - 0x124], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
test dword [eax + 0xc], 0x20040000
je 0x5eda4a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xbc]
cmp eax, 0xffffffff
je 0x5eda3b
mov dword [ebp - 0x120], eax
jmp 0x5eda4a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xa8]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xb8], 0
je 0x5eda6c
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
fld dword [eax + 0x4c]
call fcn.00404888
mov dword [ebp - 0x180], eax
jmp 0x5eda7f
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
fld dword [eax + 0x4c]
call fcn.00404888
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc0], 0
jne 0x5eda93
xor eax, eax
mov dword [ebp - 0x194], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x190], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x18c], edx
mov eax, dword [esi]
mov eax, dword [eax + 0x174]
mov edx, dword [esi]
cmp eax, dword [edx + 0x170]
jge 0x5edb08
mov eax, dword [esi]
mov eax, dword [eax + 0x16c]
mov edx, dword [esi]
mov edx, dword [edx + 0x174]
add edx, edx
add edx, edx
add edx, edx
add eax, edx
mov edx, dword [eax]
mov dword [ebp - 0x68], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x190]
mov edx, dword [ebp - 0x18c]
cmp edx, dword [ebp - 0x64]
jne 0x5edaf4
cmp eax, dword [ebp - 0x68]
jb 0x5edb08
jmp 0x5edaf6
jl 0x5edb08
mov dword [ebp - 0x194], 1
mov eax, dword [esi]
inc dword [eax + 0x174]
mov eax, dword [0x8e6438]
push dword [eax + 4]
push dword [eax]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebp - 0x18c]
push dword [ebp - 0x190]
mov eax, dword [0x8e66f8]
mov eax, dword [eax]
call eax
add esp, 0x18
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
cmp word [eax + 0x3c2], 0
jne 0x5edb50
mov eax, dword [ebp - 0xc]
cmp word [eax + 0x3d2], 0
je 0x5edb61
push ebp
lea eax, [ebp - 0x1c8]
mov edx, ebx
call fcn.005ed1cc
pop ecx
jmp 0x5edb65
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0xc]
movzx edx, byte [0x5ededc]
cmp dl, byte [eax + 0x378]
je 0x5edb96
mov eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
movzx eax, byte [ebp - 1]
push eax
lea edx, [ebp - 0x1c8]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.005ecf30
lea eax, [ebp - 0x1c8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2f0]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2f4]
push eax
push ebx
mov eax, dword [0x8e7148]
mov eax, dword [eax]
call eax
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x5edbdd
mov ecx, 0x5edeec
mov dl, 1
mov eax, dword [0x5e6bb4]
call fcn.0041ca5c
call fcn.004063f4
cmp dword [ebp - 0x20], 0
jle 0x5edcd5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2f4]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebx + 0x184]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
push edx
push eax
mov eax, dword [0x8e6998]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x5edc20
cmp eax, dword [esp]
pop edx
pop eax
je 0x5edc59
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
mov eax, dword [ebx + 0x184]
push dword [eax + 0x3c]
push dword [eax + 0x38]
mov eax, dword [0x8e66f8]
mov eax, dword [eax]
call eax
add esp, 0x18
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
mov eax, dword [ebx + 0x184]
cmp dword [eax + 0x30], 0
je 0x5edc6c
or dword [ebp - 0x94], 1
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
push eax
lea ecx, [ebp - 0xb0]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.005eb08c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
cdq
mov ecx, dword [ebp - 0xc]
add dword [ecx + 0x278], eax
adc dword [ecx + 0x27c], edx
mov eax, dword [esi]
mov eax, dword [eax + 0x198]
test eax, eax
je 0x5edcd5
cmp dword [ebx + 0x10c], 0
je 0x5edcd5
mov edx, dword [ebx + 0x10c]
push edx
push 0x5edf18
push eax
mov eax, dword [0x8e6280]
mov eax, dword [eax]
call eax
add esp, 0xc
mov eax, dword [esi]
add dword [eax + 0x20], 1
adc dword [eax + 0x24], 0
mov eax, dword [esi]
inc dword [eax + 0x14]
dec edi
jne 0x5ed891
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5edd0b
lea eax, [ebp - 0x1d4]
call fcn.00407ddc
ret