Function at 0x50cbfc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff80
mov ebx, edx
mov edi, eax
lea ebp, [esp + 0x58]
mov eax, dword [0x523008]
mov eax, dword [eax + 0x5c]
call fcn.004d279c
mov dword [esp], eax
lea edx, [esp + 0x68]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 4]
call fcn.004286d4
call fcn.00423d24
mov ecx, 0xffffff
pop edx
call fcn.004ccd44
lea edx, [esp + 0x48]
mov eax, edi
mov si, 0xffb3
call fcn.00403bd8
lea eax, [esp + 0x48]
xor edx, edx
call fcn.004f677c
mov dword [esp + 0xc], eax
lea eax, [esp + 0x48]
xor edx, edx
call fcn.004f6790
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
sar eax, 1
jns 0x50cc7c
adc eax, 0
add eax, dword [esp + 0x48]
mov dword [esp + 8], eax
test bl, bl
je 0x50cca4
mov eax, edi
call fcn.0050a894
mov ebx, eax
mov eax, dword [0x523008]
mov eax, dword [eax + 0x40]
call fcn.0050d3ec
mov dword [esp + 0x3c], eax
jmp 0x50ccd6
call fcn.004c8e4c
test al, al
je 0x50ccb6
cmp byte [0x520864], 0
je 0x50ccce
mov eax, dword [0x523008]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x18]
test eax, eax
setg bl
and ebx, 0x7f
imul ebx, eax
jmp 0x50ccd0
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x14]
mov eax, edi
call fcn.0050cadc
mov eax, ebx
shl eax, 8
mov ecx, 0x64
cdq
idiv ecx
mov dword [esp + 4], eax
mov eax, 0xff
sub eax, dword [esp + 4]
mov dword [esp + 0x78], eax
fild dword [esp + 0x78]
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x7c], eax
fild dword [esp + 0x7c]
call fcn.0040315c
fstp qword [esp + 0x20]
wait
mov eax, dword [esp]
call fcn.004286d4
mov eax, dword [eax + 0x10]
mov dl, 5
call fcn.00423110
mov eax, dword [esp + 0x3c]
test eax, eax
jl 0x50d098
inc eax
mov dword [esp + 0x40], eax
xor ebx, ebx
push 0
push 0
push 0
push 0xff
mov eax, dword [esp + 0x4c]
sub eax, ebx
mov dword [esp + 0x88], eax
fild dword [esp + 0x88]
fmul qword [esp + 0x30]
call fcn.00402b9c
push edx
push eax
mov eax, dword [esp + 0x1c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
call fcn.0042a88c
push edx
push eax
call fcn.0042a908
mov byte [esp + 0x28], al
mov al, byte [esp + 0x28]
mov byte [esp + 0x29], al
mov al, byte [esp + 0x28]
mov byte [esp + 0x2a], al
mov eax, dword [esp]
call fcn.004286d4
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x28]
call fcn.00423314
mov eax, dword [esp + 0x50]
sub eax, ebx
inc eax
push eax
mov eax, dword [esp + 0x58]
sub eax, ebx
inc eax
push eax
mov eax, dword [esp + 8]
call fcn.004286d4
mov ecx, dword [esp + 0x54]
add ecx, ebx
mov edx, dword [esp + 0x50]
add edx, ebx
call fcn.004236ec
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 0x254]
cdq
idiv ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
cdq
idiv ecx
mov dword [esp + 0x30], eax
mov al, byte [edi + 0x238]
sub al, 1
jb 0x50ce0d
je 0x50ceed
dec al
je 0x50ce77
jmp 0x50cf56
mov eax, dword [esp + 0xc]
sar eax, 1
jns 0x50ce18
adc eax, 0
sub eax, dword [esp + 0x2c]
mov edx, dword [edi + 0x250]
inc edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
mov ecx, 6
cdq
idiv ecx
add eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x30]
mov edx, dword [edi + 0x250]
inc edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x2c]
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
mov ecx, 6
cdq
idiv ecx
add eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x30]
mov dword [ebp + 4], eax
jmp 0x50cfee
mov eax, dword [0x523008]
mov eax, dword [eax + 0x40]
call fcn.0050d410
add eax, dword [esp + 0xc]
sar eax, 1
jns 0x50ce8f
adc eax, 0
sub eax, dword [esp + 0x2c]
neg eax
cdq
idiv dword [edi + 0x250]
add eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
mov ecx, 6
cdq
idiv ecx
add eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x30]
mov edx, dword [edi + 0x250]
inc edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 8]
add eax, dword [esp + 0x38]
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
mov ecx, 6
cdq
idiv ecx
add eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x30]
mov dword [ebp + 4], eax
jmp 0x50cfee
mov eax, dword [esp + 0xc]
sar eax, 1
jns 0x50cef8
adc eax, 0
sub eax, dword [esp + 0x2c]
mov edx, dword [edi + 0x250]
dec edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x4c]
sub eax, dword [esp + 0x54]
neg eax
mov edx, dword [edi + 0x250]
dec edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
sar eax, 1
jns 0x50cf30
adc eax, 0
mov edx, dword [esp + 8]
sub edx, eax
mov dword [ebp], edx
mov eax, dword [esp + 0x54]
add eax, dword [esp + 0x34]
mov edx, dword [esp + 0x34]
sar edx, 1
jns 0x50cf4c
adc edx, 0
add eax, edx
mov dword [ebp + 4], eax
jmp 0x50cfee
mov eax, dword [0x523008]
mov eax, dword [eax + 0x40]
call fcn.0050d410
mov edx, dword [edi + 0x48]
sub edx, dword [esp + 8]
add eax, edx
mov edx, dword [esp + 0x2c]
sar edx, 1
jns 0x50cf77
adc edx, 0
sub eax, edx
neg eax
mov edx, dword [edi + 0x250]
dec edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x38], eax
mov eax, dword [0x523008]
mov eax, dword [eax + 0x40]
call fcn.0050d410
mov ecx, eax
add ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
mov esi, 6
cdq
idiv esi
add ecx, eax
mov eax, ecx
sub eax, dword [esp + 0x30]
neg eax
mov edx, dword [edi + 0x250]
dec edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
sar eax, 1
jns 0x50cfcf
adc eax, 0
add eax, dword [esp + 8]
mov dword [ebp], eax
mov eax, dword [esp + 0x54]
add eax, dword [esp + 0x34]
mov edx, dword [esp + 0x34]
sar edx, 1
jns 0x50cfe9
adc edx, 0
add eax, edx
mov dword [ebp + 4], eax
mov eax, dword [edi + 0x250]
test eax, eax
jle 0x50d08d
mov dword [esp + 0x44], eax
mov esi, 1
mov ecx, dword [edi + 0x254]
imul ecx, esi
mov eax, dword [esp + 0xc]
cdq
idiv ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
cdq
idiv ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
sub dword [ebp], eax
mov eax, dword [esp + 0x34]
sub dword [ebp + 4], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
add eax, dword [esp + 0x30]
mov dword [ebp + 0xc], eax
mov eax, ebx
add eax, eax
mov edx, eax
add edx, dword [ebp + 4]
cmp edx, dword [ebp + 0xc]
jge 0x50d082
add eax, dword [ebp]
cmp eax, dword [ebp + 8]
jge 0x50d082
mov eax, dword [ebp + 8]
sub eax, ebx
inc eax
push eax
mov eax, dword [ebp + 0xc]
sub eax, ebx
inc eax
push eax
mov eax, dword [esp + 8]
call fcn.004286d4
mov ecx, dword [ebp + 4]
add ecx, ebx
mov edx, dword [ebp]
add edx, ebx
call fcn.004236ec
inc esi
dec dword [esp + 0x44]
jne 0x50d005
inc ebx
dec dword [esp + 0x40]
jne 0x50cd3f
mov eax, dword [esp]
add esp, 0x80
pop ebp
pop edi
pop esi
pop ebx
ret