Function at 0x500d48
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
jne 0x500d74
mov edx, 0x501160
mov eax, dword [ebp - 4]
call fcn.004ef018
jmp 0x50114f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004fc410
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004fcc90
mov dl, 5
call fcn.004f1ef4
call fcn.00402c90
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004fcc9c
mov eax, dword [eax + 0xc]
call fcn.004f9360
add ebx, eax
mov edx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.004f9438
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004fcc68
mov dl, 5
call fcn.004f1ef4
call fcn.00402c90
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004fcc9c
mov eax, dword [eax + 0x14]
call fcn.004f9360
add ebx, eax
mov edx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.004f9438
mov eax, dword [0x511df0]
mov eax, dword [eax]
mov ax, word [eax + 0x44]
mov word [ebp - 0x16], ax
mov eax, dword [0x511df0]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00469b18
xor eax, eax
push ebp
push 0x501148
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x30
call fcn.00403308
mov eax, dword [ebp - 4]
call fcn.00500c28
call fcn.004f0174
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 4]
call fcn.00500c28
call fcn.004f0174
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004fcbac
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.004fcccc
lea ecx, [ebp - 0x5c]
mov dl, 4
call fcn.004f2600
fld xword [ebp - 0x5c]
fmul dword [0x5011a0]
call fcn.00402c90
mov dword [ebp - 0x28], eax
fld xword [ebp - 0x52]
fmul dword [0x5011a0]
call fcn.00402c90
mov dword [ebp - 0x24], eax
push edi
lea esi, [ebp - 0x30]
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
push edi
lea esi, [ebp - 0x40]
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
push 0
push 0
push 0x439
mov eax, edi
call fcn.00451810
push eax
call sub.user32.dll_SendMessageA
mov eax, edi
call fcn.004f4ac0
test al, al
je 0x500f0a
push 0
lea eax, [ebp - 0x14]
push eax
push 0x45f
mov eax, edi
call fcn.00451810
push eax
call sub.user32.dll_SendMessageA
mov dword [ebp - 8], eax
jmp 0x500f14
mov eax, edi
call fcn.0044afd4
mov dword [ebp - 8], eax
mov eax, edi
call fcn.004f4a28
test al, al
je 0x500f22
dec dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00500c34
mov eax, dword [eax + 8]
mov edx, edi
call fcn.004f6b20
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004fcbac
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.004fcccc
lea ecx, [ebp - 0x70]
mov dl, 4
call fcn.004f2600
fld xword [ebp - 0x70]
fmul dword [0x5011a0]
call fcn.00402c90
mov dword [ebp - 0x28], eax
fld xword [ebp - 0x66]
fmul dword [0x5011a0]
call fcn.00402c90
mov dword [ebp - 0x24], eax
push esi
lea esi, [ebp - 0x30]
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004fcc9c
mov eax, dword [eax + 8]
call fcn.004f9360
add dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.004f9360
add eax, dword [ebp - 0x3c]
add eax, 0x5a
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004fcc9c
mov eax, dword [eax + 0x10]
call fcn.004f9360
sub dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.004f9360
sub dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x44], 0
jne 0x500feb
mov eax, dword [ebp - 0x38]
add eax, eax
lea eax, [eax + eax*4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0xc]
call fcn.004f4ac0
test al, al
je 0x501017
lea eax, [ebp - 0x48]
push eax
push 0
push 0x439
mov eax, dword [ebp - 0xc]
call fcn.00451810
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
jmp 0x501032
lea eax, [ebp - 0x48]
push eax
push 0
push 0x439
mov eax, dword [ebp - 0xc]
call fcn.00451810
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, esi
call fcn.004fcccc
mov esi, dword [eax + 0x24]
fild dword [ebp - 0x40]
fdiv dword [0x5011a0]
add esp, 0xfffffff4
fstp xword [esp]
wait
fild dword [ebp - 0x3c]
fdiv dword [0x5011a0]
add esp, 0xfffffff4
fstp xword [esp]
wait
fild dword [ebp - 0x38]
fdiv dword [0x5011a0]
add esp, 0xfffffff4
fstp xword [esp]
wait
fild dword [ebp - 0x34]
fdiv dword [0x5011a0]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x98]
call fcn.004db6e8
lea edx, [ebp - 0x98]
mov eax, dword [esi + 0xc]
call fcn.004f9678
lea ecx, [ebp - 0xa0]
mov edx, ebx
mov eax, dword [ebp - 0x20]
call fcn.00417f6c
lea edx, [ebp - 0xa0]
mov eax, esi
call fcn.004f9b1c
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.004f9b40
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x44]
mov byte [esi + 0x18], al
cmp ebx, dword [ebp - 8]
jge 0x5010dd
cmp ebx, 0xffffffff
je 0x5010dd
mov eax, dword [ebp - 4]
call fcn.00500c44
mov eax, dword [ebp - 4]
cmp word [eax + 0x52], 0
je 0x501111
mov dword [ebp - 0xa4], ebx
fild dword [ebp - 0xa4]
fild dword [ebp - 8]
fdivp st(1)
fmul dword [0x5011a4]
call fcn.00402c90
mov ecx, eax
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x54]
call dword [esi + 0x50]
cmp ebx, dword [ebp - 8]
jge 0x50111f
cmp ebx, 0xffffffff
jne 0x500f37
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50114f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004fc4ec
mov eax, dword [0x511df0]
mov eax, dword [eax]
mov dx, word [ebp - 0x16]
call fcn.00469b18
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret