Function at 0x4db1c8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4db50c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004047d0
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0050fea4
mov edx, edi
call fcn.004f6a04
mov al, byte [eax + 0x30]
dec al
je 0x4db226
sub al, 2
je 0x4db4c9
jmp 0x4db4ee
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0050fea4
mov edx, edi
call fcn.004f6a04
cmp dword [eax + 0x20], 0
je 0x4db268
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0050fea4
mov edx, edi
call fcn.004f6a04
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [ebx + 8]
call fcn.004fd478
mov eax, dword [eax + 0x30]
pop edx
call fcn.004a4040
mov dword [ebp - 8], eax
jmp 0x4db28a
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0050fea4
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebx + 8]
call fcn.004fd478
mov eax, dword [eax + 0x30]
pop edx
call fcn.004a4040
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4db4ee
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
imul edi
add esi, eax
mov eax, dword [ebx + 0x14]
fild qword [eax + esi*8]
lea eax, [ebp - 0x18]
call fcn.00416108
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x40]
cmp eax, 8
jg 0x4db2d5
je 0x4db351
add eax, 0xfffffffe
sub eax, 3
jb 0x4db2e8
dec eax
sub eax, 2
jb 0x4db44b
jmp 0x4db4ee
sub eax, 0xe
je 0x4db2e8
sub eax, 0x17
je 0x4db3ce
jmp 0x4db4ee
mov eax, dword [ebp - 8]
mov edx, dword [0x49285c]
call fcn.00403a3c
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.00404868
cmp dword [ebp - 4], 0
jne 0x4db332
lea eax, [ebp - 0x18]
call fcn.00412704
lea edx, [ebp - 0x118]
call fcn.00403298
lea edx, [ebp - 0x118]
mov eax, dword [ebp + 8]
call fcn.00404a34
jmp 0x4db4ee
lea eax, [ebp - 0x18]
call fcn.00414054
add esp, 0xfffffff4
fstp xword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b404
jmp 0x4db4ee
mov eax, dword [ebp - 8]
mov edx, dword [0x493f50]
call fcn.00403a3c
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.00404868
cmp dword [ebp - 4], 0
jne 0x4db3af
cmp byte [ebx + 0xe8], 0
je 0x4db38b
mov bl, 4
mov esi, dword [0x56f15c]
movzx esi, byte [esi]
jmp 0x4db38f
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.004149b0
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, ebx
call fcn.0040b3cc
jmp 0x4db4ee
lea eax, [ebp - 0x18]
call fcn.004149b0
add esp, 0xfffffff8
fistp qword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b45c
jmp 0x4db4ee
mov eax, dword [ebp - 8]
mov edx, dword [0x494154]
call fcn.00403a3c
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.00404868
cmp dword [ebp - 4], 0
jne 0x4db42c
cmp byte [ebx + 0xe8], 0
je 0x4db408
mov bl, 4
mov esi, dword [0x56f15c]
movzx esi, byte [esi]
jmp 0x4db40c
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.004149b0
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, ebx
call fcn.0040b3cc
jmp 0x4db4ee
lea eax, [ebp - 0x18]
call fcn.004149b0
add esp, 0xfffffff8
fistp qword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b45c
jmp 0x4db4ee
mov eax, dword [ebp - 8]
mov edx, dword [0x492fc0]
call fcn.00403a3c
mov edi, eax
lea eax, [ebp - 4]
mov edx, dword [edi + 0xe0]
call fcn.00404868
cmp dword [ebp - 4], 0
jne 0x4db4ad
cmp byte [edi + 0xe8], 0
je 0x4db485
mov bl, 4
mov esi, dword [0x56f15c]
movzx esi, byte [esi]
jmp 0x4db489
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.00414054
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [ebp + 8]
push eax
mov edx, dword [edi + 0xec]
mov ecx, esi
mov eax, ebx
call fcn.0040b394
jmp 0x4db4ee
lea eax, [ebp - 0x18]
call fcn.00414054
add esp, 0xfffffff4
fstp xword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b404
jmp 0x4db4ee
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
imul edi
add esi, eax
mov eax, dword [ebx + 0x14]
fild qword [eax + esi*8]
fdiv dword [0x4db51c]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [ebp + 8]
call fcn.0040b334
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db513
lea eax, [ebp - 0x18]
call fcn.004119c8
lea eax, [ebp - 4]
call fcn.004047d0
ret